Another instance of the databasename.
authorgregor herrmann <gregoa@debian.org>
Thu, 23 Jun 2011 21:35:13 +0000 (21:35 +0000)
committergregor herrmann <gregoa@debian.org>
Thu, 23 Jun 2011 21:35:13 +0000 (21:35 +0000)
(NOTE: untested, this codepath is only used on maemo)

src/gui/alarmdialog.cpp

index 34f0591..5b8e3c2 100644 (file)
@@ -54,8 +54,11 @@ AlarmDialog::AlarmDialog(int argc, char *argv[], QWidget *aParent)
     connect(appPB, SIGNAL(clicked()), SLOT(runApp()));
     connect(snoozePB, SIGNAL(clicked()), SLOT(snooze()));
 
+    qString databaseFileName;
+    databaseFileName = QDesktopServices::storageLocation(QDesktopServices::DataLocation + "ConfClerk.sqlite" 
+    // TODO: check existence
     QSqlDatabase database = QSqlDatabase::addDatabase("QSQLITE");
-    database.setDatabaseName(QDir::homePath() + "/.fosdem/fosdem.sqlite");
+    database.setDatabaseName(databaseFileName);
     database.open();
 
     QString titleStr;