OSSP CVS Repository

ossp - Check-in [3988]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 3988
Date: 2003-Feb-03 12:15:48 (local)
2003-Feb-03 11:15:48 (UTC)
User:ms
Branch:
Comment: Improve edit control [en|dis]ablement condition, and remove pixmap.
Tickets:
Inspections:
Files:
ossp-pkg/as/as-gui/as_assist.cpp      1.94 -> 1.95     5 inserted, 4 deleted

ossp-pkg/as/as-gui/as_assist.cpp 1.94 -> 1.95

--- as_assist.cpp        2003/02/03 10:57:57     1.94
+++ as_assist.cpp        2003/02/03 11:15:48     1.95
@@ -964,10 +964,12 @@
 void Titraqform::enableIface(bool bTurned)
 {
     // FIXME: Does not belong here, so relocate
-    if (!bTurned)                       // Turn off the interface
-        m_pMaintable->setNumRows(0);    // Remove table data
-    else                                // Turn on the interface
+    if (bTurned)                       // Turn off the interface
         m_pDateedit->setDayfocus();     // Default focus is on day
+    else {                              // Turn on the interface
+        m_pMaintable->setNumRows(0);    // Remove table data
+        m_pStatusedit->setPixmap(QPixmap(s_kpcStatvoid_xpm));
+    }
 
     // Enable or disable the widgets
     m_pMaintable->setEnabled(bTurned);
@@ -1001,7 +1003,6 @@
 #endif // HAVE_ESOAP
 
     // Unconditional settings
-    this->updEdit(m_pMaintable->currentRow());      // Update edit controls
     m_pMaintable->setDirty(false);                  // Reset to clean data
 }
 

CVSTrac 2.0.1