Commit 49103998 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use ifdef to test for C++ preprocessor var created with #cmakedefine

parent b08f2bfb
......@@ -152,7 +152,7 @@
/* Define 1 if the Breeze window decoration was found */
#cmakedefine HAVE_BREEZE_DECO 1
#if HAVE_BREEZE_DECO
#ifdef HAVE_BREEZE_DECO
#define BREEZE_KDECORATION_PLUGIN_ID "${BREEZE_KDECORATION_PLUGIN_ID}"
#endif
......
......@@ -357,7 +357,7 @@ void KCMLookandFeel::save()
if (m_applyWindowDecoration) {
cg = KConfigGroup(conf, "kwinrc");
cg = KConfigGroup(&cg, "org.kde.kdecoration2");
#if HAVE_BREEZE_DECO
#ifdef HAVE_BREEZE_DECO
setWindowDecoration(cg.readEntry("library", QStringLiteral(BREEZE_KDECORATION_PLUGIN_ID)), cg.readEntry("theme", QString()));
#else
setWindowDecoration(cg.readEntry("library", QStringLiteral("org.kde.kwin.aurorae")), cg.readEntry("theme", QString()));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment