Provide sane defaults for new network settings options in case you still used a revis...
authorManuel Nickschas <sputnick@quassel-irc.org>
Wed, 13 Feb 2008 00:29:35 +0000 (00:29 +0000)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 13 Feb 2008 00:29:35 +0000 (00:29 +0000)
until now. If you already did the migration, you'll still have to sanitize your settings yourself...

src/core/coresession.cpp
version.inc

index e89f821..54457c7 100644 (file)
@@ -135,6 +135,15 @@ void CoreSession::loadSettings() {
     qDebug() << "Migrating Networksettings to DB Storage for User:" << user();
     foreach(NetworkId id, netIds) {
       NetworkInfo info = s.networkInfo(id);
+
+      // default new options
+      info.useRandomServer = false;
+      info.useAutoReconnect = true;
+      info.autoReconnectInterval = 60;
+      info.autoReconnectRetries = 20;
+      info.useAutoIdentify = false;
+      info.rejoinChannels = true;
+
       Core::updateNetwork(user(), info);
       s.removeNetworkInfo(id);
     }
index d95f5e8..9cf947c 100644 (file)
@@ -5,7 +5,7 @@
 
   quasselVersion = "0.2.0-pre";
   quasselDate = "2008-02-13";
-  quasselBuild = 512;
+  quasselBuild = 514;
 
   //! Minimum client build number the core needs
   clientBuildNeeded = 512;