From 830c1b67a4391bed3c959faef9bff33aca5f5423 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Thu, 22 Nov 2018 11:42:30 +0100 Subject: Fix transparent background being enabled if Plasma is found --- src/mainwindow/mainwindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mainwindow/mainwindow.cpp b/src/mainwindow/mainwindow.cpp index cb7fee6..e465a4f 100644 --- a/src/mainwindow/mainwindow.cpp +++ b/src/mainwindow/mainwindow.cpp @@ -37,7 +37,8 @@ #include "configuration.h" #include "profilemanager.h" #include "webprofile.h" -#ifdef PLASMA +#include "config.h" +#ifdef CONFIG_PLASMA_BLUR #include #endif @@ -76,7 +77,7 @@ MainWindow::MainWindow(const std::unique_ptr &config, QWidget *pa ui->setupUi(this); -#ifdef PLASMA +#ifdef CONFIG_PLASMA_BLUR setAttribute(Qt::WA_TranslucentBackground, true); KWindowEffects::enableBlurBehind(this->winId(), true); #endif -- cgit v1.2.1