author | harlekin <harlekin> | 2002-03-22 09:04:05 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-03-22 09:04:05 (UTC) |
commit | d710cacb0ee021274ed5507a76a3cc0ca9a65a4e (patch) (side-by-side diff) | |
tree | 68ab43f438062e62acf167ebfc086197af656130 | |
parent | 23663a914f1b831134d907dfa9f367381718bdc7 (diff) | |
download | opie-d710cacb0ee021274ed5507a76a3cc0ca9a65a4e.zip opie-d710cacb0ee021274ed5507a76a3cc0ca9a65a4e.tar.gz opie-d710cacb0ee021274ed5507a76a3cc0ca9a65a4e.tar.bz2 |
bugfixes
-rw-r--r-- | core/pim/today/today.cpp | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp index 58ba4f4..aef0a9b 100644 --- a/core/pim/today/today.cpp +++ b/core/pim/today/today.cpp @@ -73,4 +73,4 @@ Today::Today( QWidget* parent, const char* name, WFlags fl ) this, SLOT ( channelReceived(const QCString &, const QByteArray &)) ); -#endif -#endif +#endif +#endif @@ -148,2 +148,3 @@ void Today::draw() { if (checkIfModified()) { + if (todo) delete todo; todo = new ToDoDB; @@ -151,3 +152,3 @@ void Today::draw() { } - + // how often refresh @@ -156,3 +157,3 @@ void Today::draw() { -/* +/* * Check if the todolist.xml was modified (if there are new entries. @@ -161,7 +162,7 @@ void Today::draw() { bool Today::checkIfModified() { - + QDir dir; - QString homedir = dir.homeDirPath (); + QString homedir = dir.homeDirPath (); QString time; - + Config cfg("today"); @@ -176,3 +177,3 @@ bool Today::checkIfModified() { cfg.writeEntry("todolisttimestamp", fileTime.toString() ); - cfg.write(); + cfg.write(); return true; @@ -188,9 +189,9 @@ void Today::init() { QString time = (tr( date.toString()) ); - + TextLabel1->setText(QString("<font color=#FFFFFF>" + time + "</font>")); - + // read config Config cfg("today"); - cfg.setGroup("BaseConfig"); - + cfg.setGroup("BaseConfig"); + // -- config file section -- @@ -204,3 +205,3 @@ void Today::init() { SHOW_LOCATION = cfg.readNumEntry("showlocation",1); - // if notes should be shown + // if notes should be shown SHOW_NOTES = cfg.readNumEntry("shownotes",0); @@ -270,3 +271,3 @@ void Today::getDates() { QDate date = QDate::currentDate(); - + if (AllDateBookEvents) delete AllDateBookEvents; |