OSSP CVS Repository

ossp - Difference in ossp-pkg/as/as-gui/as_slot.cpp versions 1.79 and 1.80
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/as/as-gui/as_slot.cpp 1.79 -> 1.80

--- as_slot.cpp  2003/01/21 12:38:01     1.79
+++ as_slot.cpp  2003/01/22 11:36:53     1.80
@@ -103,6 +103,8 @@
         // Do basic data validation to warn against missing fields
         for (int nIter = 0; nIter < nRows; nIter++)
             this->validateData(m_pMaintable->currentRow() + nIter, 0);
+
+        updEdit(m_pMaintable->currentRow()); // Reflect in the update controls
     }
 }
 
@@ -146,6 +148,7 @@
 //            m_pMaintable->setText(Select.topRow() + nIter, TITRAQ_IDXTASK, "/");
 //            m_pMaintable->setText(Select.topRow() + nIter, TITRAQ_IDXREMARK, "Remark");
         }
+        updEdit(Select.topRow()); // Reflect in the update controls
     }
     else { // Special case on last row add downwards
         m_pMaintable->insertRows(Select.bottomRow() + 1, nTotal);
@@ -168,13 +171,13 @@
 //            m_pMaintable->setText(Select.bottomRow() + nIter, TITRAQ_IDXTASK, "/");
 //            m_pMaintable->setText(Select.bottomRow() + nIter, TITRAQ_IDXREMARK, "Remark");
         }
+        updEdit(Select.bottomRow() + 1); // Reflect in the update controls
     }
 
     // Update line numbers for this new row and all subsequent rows
     for (int nIter = m_pMaintable->currentRow(); nIter < m_pMaintable->numRows(); nIter++)
         m_pMaintable->setText(nIter, TITRAQ_IDXLINE, QString::number(nIter).rightJustify(4, QChar('0')));
 
-    updEdit(Select.topRow()); // Reflect in the update controls
     m_pStatusedit->setPixmap(QPixmap(s_kpcStatwarn_xpm)); // Show pixmap
 
 //    char szGuitext[37];
@@ -268,7 +271,7 @@
     this->setCaption(trUtf8("No file name"));
     m_pStatbar->message(trUtf8("New document"), 4000);
     this->setFilename("");
-    this->updEdit(0, 0);                // Update edit controls
+    this->updEdit(0);                   // Update edit controls
 }
 
 //

CVSTrac 2.0.1