From: Manuel Nickschas Date: Wed, 13 Feb 2008 00:29:35 +0000 (+0000) Subject: Provide sane defaults for new network settings options in case you still used a revis... X-Git-Tag: 0.2.0-alpha1~66 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=152e7c35efbf97e40d91c60cdb9c3ba734f09fb2;hp=dd24b914045d1b38d8ae5347158aa2266166703b Provide sane defaults for new network settings options in case you still used a revision before r506 until now. If you already did the migration, you'll still have to sanitize your settings yourself... --- diff --git a/src/core/coresession.cpp b/src/core/coresession.cpp index e89f821a..54457c74 100644 --- a/src/core/coresession.cpp +++ b/src/core/coresession.cpp @@ -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); } diff --git a/version.inc b/version.inc index d95f5e84..9cf947c7 100644 --- a/version.inc +++ b/version.inc @@ -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;