Somewhere a slash was missing ...
authorgregor herrmann <gregoa@debian.org>
Fri, 24 Jun 2011 14:11:24 +0000 (14:11 +0000)
committergregor herrmann <gregoa@debian.org>
Fri, 24 Jun 2011 14:11:24 +0000 (14:11 +0000)
src/gui/alarmdialog.cpp
src/sql/sqlengine.cpp
src/test/mvc/eventtest.cpp

index 5b8e3c2..e542cf8 100644 (file)
@@ -55,7 +55,7 @@ AlarmDialog::AlarmDialog(int argc, char *argv[], QWidget *aParent)
     connect(snoozePB, SIGNAL(clicked()), SLOT(snooze()));
 
     qString databaseFileName;
-    databaseFileName = QDesktopServices::storageLocation(QDesktopServices::DataLocation + "ConfClerk.sqlite" 
+    databaseFileName = QDesktopServices::storageLocation(QDesktopServices::DataLocation + "/ConfClerk.sqlite" 
     // TODO: check existence
     QSqlDatabase database = QSqlDatabase::addDatabase("QSQLITE");
     database.setDatabaseName(databaseFileName);
index 492c8ab..9f0f1e2 100644 (file)
@@ -82,7 +82,7 @@ void SqlEngine::initialize()
     QDir dataDir = QDir(dataDirName).absolutePath();
     if(!dataDir.exists())
         dataDir.mkpath(dataDirName);
-    databaseName = dataDirName + "ConfClerk.sqlite";
+    databaseName = dataDirName + "/ConfClerk.sqlite";
     login("QSQLITE",databaseName);
 }
 
index 85234ee..cfc3923 100644 (file)
@@ -30,7 +30,7 @@ void EventTest::initTestCase()
 {
     // Connect to the test database. Ask Mr. Pavelka to generate one for you :)
     QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");
-    db.setDatabaseName("fosdem-test.sqlite");
+    db.setDatabaseName("ConfClerk-test.sqlite");
     QVERIFY(db.open());
 }