summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/today.cpp10
1 files changed, 8 insertions, 2 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
@@ -77,2 +77,3 @@ Today::Today( QWidget* parent, const char* name, WFlags fl )
+ db = NULL;
setOwnerField();
@@ -211,3 +212,3 @@ void Today::init() {
- db = new DateBookDB;
+ //db = new DateBookDB;
}
@@ -276,3 +277,8 @@ void Today::getDates() {
QVBoxLayout* layoutDates = new QVBoxLayout(AllDateBookEvents);
-
+
+ if (db) {
+ delete db;
+ }
+ db = new DateBookDB;
+
QValueList<EffectiveEvent> list = db->getEffectiveEvents(date, date);