diff --git a/kcmkwin/kwindecoration/kcm.cpp b/kcmkwin/kwindecoration/kcm.cpp index 5b1c773df2..fcb154f168 100644 --- a/kcmkwin/kwindecoration/kcm.cpp +++ b/kcmkwin/kwindecoration/kcm.cpp @@ -48,6 +48,7 @@ namespace Configuration { static const QString s_pluginName = QStringLiteral("org.kde.kdecoration2"); static const QString s_defaultPlugin = QStringLiteral("org.kde.breeze"); +static const QString s_borderSizeNormal = QStringLiteral("Normal"); ConfigurationForm::ConfigurationForm(QWidget *parent) : QWidget(parent) @@ -127,7 +128,7 @@ static const QMap s_sizes = QMapsetProperty("currentIndex", index.isValid() ? index.row() : -1); } m_ui->closeWindowsDoubleClick->setChecked(config.readEntry("CloseOnDoubleClickOnMenu", false)); - const QVariant border = QVariant::fromValue(stringToSize(config.readEntry("BorderSize", QStringLiteral("Normal")))); + const QVariant border = QVariant::fromValue(stringToSize(config.readEntry("BorderSize", s_borderSizeNormal))); m_ui->borderSizesCombo->setCurrentIndex(m_ui->borderSizesCombo->findData(border)); KCModule::load(); s_loading = false;