enforce usage of SQLite in Monolithic mode
authorMarcus Eggenberger <egs@quassel-irc.org>
Thu, 15 Apr 2010 12:31:51 +0000 (14:31 +0200)
committerMarcus Eggenberger <egs@quassel-irc.org>
Thu, 15 Apr 2010 12:32:20 +0000 (14:32 +0200)
src/core/core.cpp
src/core/sqlitestorage.cpp

index 29174b6..378e3a4 100644 (file)
@@ -262,7 +262,7 @@ QString Core::setupCoreForInternalUsage() {
   }
   setupData["AdminUser"] = "AdminUser";
   setupData["AdminPasswd"] = QString::number(pass);
-  setupData["Backend"] = _storageBackends[_storageBackends.keys().first()]->displayName();
+  setupData["Backend"] = QString("SQLite"); // mono client currently needs sqlite
   return setupCore(setupData);
 }
 
index 5f36e83..aa252e7 100644 (file)
@@ -42,6 +42,9 @@ bool SqliteStorage::isAvailable() const {
 }
 
 QString SqliteStorage::displayName() const {
+  // We identify the backend to use for the monolithic core by its displayname.
+  // so only change this string if you _really_ have to and make sure the core
+  // setup for the mono client still works ;)
   return QString("SQLite");
 }