OSSP CVS Repository

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

ossp-pkg/as/as-gui/as_assist.cpp 1.69 -> 1.70

--- as_assist.cpp        2002/12/16 09:58:34     1.69
+++ as_assist.cpp        2002/12/16 12:11:40     1.70
@@ -111,6 +111,7 @@
             m_pPrefs->setString(TITRAQ_PREFUSER, Username);
         else
             m_pPrefs->setString(TITRAQ_PREFUSER, TITRAQ_DEFUSER);
+        m_pPrefs->setString(TITRAQ_PREFACCOUNTS, TITRAQ_DEFACCOUNTS);
         m_pPrefs->setString(TITRAQ_PREFASFILE, TITRAQ_DEFASFILE);
         m_pPrefs->setNumber(TITRAQ_PREFSTYLE, TITRAQ_STYLECDE);
         m_pPrefs->setString(TITRAQ_PREFVIEW, TITRAQ_DEFVIEW);
@@ -736,16 +737,9 @@
     if (m_pTaskentries == NULL) // Sanity check
         throw Genexcept("Main window task entries creation failed.");
 
-    // Populate the stringlist with fresh tasks
-    *m_pTaskentries << trUtf8("titraq")         << trUtf8("opgui")
-                    << trUtf8("email")          << trUtf8("admin")
-                    << trUtf8("pmod")           << trUtf8("psod")
-                    << trUtf8("brainstorming")  << trUtf8("communication")
-                    << trUtf8("evaluation")     << trUtf8("holiday")
-                    << trUtf8("implementation") << trUtf8("maintainance")
-                    << trUtf8("prepare")        << trUtf8("perform")
-                    << trUtf8("visit")          << trUtf8("meeting")
-                    << trUtf8("troubleshooting") << trUtf8("weekly");
+    // Populate the stringlist with fresh accounts, taken from filename in prefs
+    QFile Filetemp(m_pPrefs->getString(TITRAQ_PREFACCOUNTS, TITRAQ_PREFACCOUNTS));
+    this->loadAccounts(Filetemp);           // Load account helper method
 
     // Make the combobox task edit
     m_pTasks = new QComboBox(true, m_pCenframe, "Tasks");

CVSTrac 2.0.1