ossp-pkg/as/as-gui/as_assist.cpp 1.83 -> 1.84
--- as_assist.cpp 2003/01/24 16:32:18 1.83
+++ as_assist.cpp 2003/01/24 18:22:03 1.84
@@ -52,6 +52,7 @@
#include <qcombobox.h>
#include <qlistbox.h>
#include <qcursor.h>
+#include <qdir.h>
// User interface
#include "as_gui.h" // Main classes
@@ -837,7 +838,7 @@
// Configure attributes
m_pAmount->setButtonSymbols(QSpinBox::PlusMinus);
- m_pAmount->setSuffix(trUtf8(" Minutes"));
+ m_pAmount->setSuffix(trUtf8(" Mins"));
m_pAmount->setEnabled(false);
// m_pAmount->setSpecialValueText(trUtf8("In progress"));
@@ -855,8 +856,11 @@
throw Genexcept("Main window task entries creation failed.");
// 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
+ QString Asdir = m_pPrefs->getString(TITRAQ_PREFACCOUNTS, TITRAQ_DEFACCOUNTS);
+ if (Asdir.startsWith(TITRAQ_HOMEDIRTOK))
+ Asdir = QDir::homeDirPath() + Asdir.remove(0, QString(TITRAQ_HOMEDIRTOK).length() - 1);
+ QFile Filetemp(Asdir);
+ this->loadAccounts(Filetemp); // Load account helper method
// Make the combobox task edit
m_pTasks = new QComboBox(true, m_pCenframe, "Tasks");
|
|