From: Manuel Nickschas Date: Thu, 22 Jan 2009 22:05:34 +0000 (+0100) Subject: Remove old UiStyle migration code that would try to access settings at the old location X-Git-Tag: 0.4.0~177 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=661013d9d9588cd5383dbb0838dcfd35c95ba5ad Remove old UiStyle migration code that would try to access settings at the old location --- diff --git a/src/uisupport/uistyle.cpp b/src/uisupport/uistyle.cpp index dafcc5f8..4e1bd775 100644 --- a/src/uisupport/uistyle.cpp +++ b/src/uisupport/uistyle.cpp @@ -24,9 +24,6 @@ #include "uisettings.h" #include "util.h" -// FIXME remove with migration code -#include - UiStyle::UiStyle(const QString &settingsKey) : _settingsKey(settingsKey) { // register FormatList if that hasn't happened yet // FIXME I don't think this actually avoids double registration... then again... does it hurt? @@ -36,24 +33,6 @@ UiStyle::UiStyle(const QString &settingsKey) : _settingsKey(settingsKey) { Q_ASSERT(QVariant::nameToType("UiStyle::FormatList") != QVariant::Invalid); } - // FIXME remove migration at some point - // We remove old settings if we find them, since they conflict -#ifdef Q_WS_MAC - QSettings mys(QCoreApplication::organizationDomain(), Quassel::buildInfo().clientApplicationName); -#else - QSettings mys(QCoreApplication::organizationName(), Quassel::buildInfo().clientApplicationName); -#endif - mys.beginGroup("QtUi"); - if(mys.childGroups().contains("Colors")) { - qDebug() << "Removing obsolete UiStyle settings!"; - mys.endGroup(); - mys.remove("Ui"); - mys.remove("QtUiStyle"); - mys.remove("QtUiStyleNew"); - mys.remove("QtUi/Colors"); - mys.sync(); - } - _defaultFont = QFont("Monospace", QApplication::font().pointSize()); // Default format