summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/pim/today/today.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index 51aba69..7cef035 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -76,4 +76,5 @@ Today::Today( QWidget* parent, const char* name, WFlags fl )
#endif
+ db = NULL;
setOwnerField();
todo = new ToDoDB;
@@ -210,5 +211,5 @@ void Today::init() {
ONLY_LATER = cfg.readNumEntry("onlylater",1);
- db = new DateBookDB;
+ //db = new DateBookDB;
}
@@ -276,4 +277,9 @@ void Today::getDates() {
QVBoxLayout* layoutDates = new QVBoxLayout(AllDateBookEvents);
+ if (db) {
+ delete db;
+ }
+ db = new DateBookDB;
+
QValueList<EffectiveEvent> list = db->getEffectiveEvents(date, date);