OSSP CVS Repository

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

ossp-pkg/as/as-gui/as_assist.cpp 1.118 -> 1.119

--- as_assist.cpp        2004/05/27 21:48:40     1.118
+++ as_assist.cpp        2004/08/20 17:47:07     1.119
@@ -932,12 +932,12 @@
     this->updSizes(TITRAQ_IDXALLCTRLS, -1, -1);
 
     // Validate data just as it is being entered
-    connect(m_pDateedit, SIGNAL(valueChanged(const QDate &)), SLOT(validateData(void)));
-    connect(m_pStarttime, SIGNAL(valueChanged(const QTime &)), SLOT(validateData(void)));
-    connect(m_pEndtime, SIGNAL(valueChanged(const QTime &)), SLOT(validateData(void)));
-    connect(m_pAmount, SIGNAL(valueChanged(const QTime &)), SLOT(validateData(void)));
-    connect(m_pTasks, SIGNAL(textChanged(const QString &)), SLOT(validateData(void)));
-    connect(m_pRemark, SIGNAL(textChanged(const QString &)), SLOT(validateData(void)));
+    connect(m_pDateedit, SIGNAL(valueChanged(const QDate &)), SLOT(validateRow(void)));
+    connect(m_pStarttime, SIGNAL(valueChanged(const QTime &)), SLOT(validateRow(void)));
+    connect(m_pEndtime, SIGNAL(valueChanged(const QTime &)), SLOT(validateRow(void)));
+    connect(m_pAmount, SIGNAL(valueChanged(const QTime &)), SLOT(validateRow(void)));
+    connect(m_pTasks, SIGNAL(textChanged(const QString &)), SLOT(validateRow(void)));
+    connect(m_pRemark, SIGNAL(textChanged(const QString &)), SLOT(validateRow(void)));
 
     // Signals sent between table cells and corresponding edit control widgets
     connect(m_pLineedit, SIGNAL(textChanged(const QString &)), SLOT(updateLine(const QString &)));
@@ -1083,7 +1083,7 @@
                 try {
                     this->setFilename(qApp->argv()[nIter]); // Store inital filename
                     Initial.setName(*this->getFilename());  // Initial file to load
-                    if (Initial.exists(*getFilename())) {
+                    if (Initial.exists(*getFilename()) && validateData(Initial)) {
                         this->loadData(Initial);            // Pass to helper method
                         enableIface(true);                  // Turn on the lights
                         m_pStatbar->message(trUtf8("Loaded document ") + *this->getFilename());

CVSTrac 2.0.1