OSSP CVS Repository

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

ossp-pkg/as/as-gui/as_gui.cpp 1.34 -> 1.35

--- as_gui.cpp   2003/01/16 08:37:40     1.34
+++ as_gui.cpp   2003/01/28 16:41:15     1.35
@@ -41,6 +41,8 @@
 Titraqform::Titraqform(QWidget *pParent, const char *kszName, WFlags Flags) :
     QMainWindow(pParent, kszName, Flags)
 {
+    int nUnhandled; // Holds the number of unhandled command line arguments
+
     // Early initializations
     m_pFiletools = NULL;
     m_pEdittools = NULL;
@@ -61,6 +63,7 @@
         setupEditlay();         // Create and initialize edit controls
         setupColumns();         // Prepare columns for viewing, sorting
         enableIface(false);     // Start things off in a empty state
+        nUnhandled = setupCmdargs();         // Parse the command line, and init file
     }
     catch (Genexcept& Genex) {
         Genex.reportErr();
@@ -85,7 +88,9 @@
 //    setSizePolicy(QSizePolicy((QSizePolicy::SizeType)0,
 //        (QSizePolicy::SizeType)0, 0, 0, sizePolicy().hasHeightForWidth()));
 
-    m_pStatbar->message(trUtf8("Ready"));   // Signal a ready condition
+    // Logic left over from setupCmdargs to help decide what our cmd parsing did
+    if (nUnhandled == 0)                        // Args handled, no initial file
+        m_pStatbar->message(trUtf8("Ready"));   // Signal a ready condition
 }
 
 //

CVSTrac 2.0.1