From f92343d24d0c6813ed33765f065c34f79a4e66b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 12 Sep 2015 16:19:02 +0200 Subject: Add Default as a valid option for GTK3 theme This resolves Bug 2478 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- kcm_gtk/kcmgtk.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kcm_gtk/kcmgtk.cpp b/kcm_gtk/kcmgtk.cpp index 137bd0c..0667731 100644 --- a/kcm_gtk/kcmgtk.cpp +++ b/kcm_gtk/kcmgtk.cpp @@ -267,17 +267,17 @@ void KcmGtk::getInstalledThemes() } } - bool gtk3installed = false; + bool gtk3installed = !gtk3Themes.empty(); widget->styleBox3->clear(); - if(!gtk3Themes.empty()) { + if(gtk3installed) { TQStringList otherGtk3Styles = gtk3Themes.keys(); if(otherGtk3Styles.find("tdegtk")!=otherGtk3Styles.end()) { otherGtk3Styles.remove(otherGtk3Styles.find("tdegtk")); } - gtk3installed = !otherGtk3Styles.empty(); - if(gtk3installed) { - widget->styleBox3->insertStringList(otherGtk3Styles); + if(otherGtk3Styles.find("Default")==otherGtk3Styles.end()) { + otherGtk3Styles.prepend("Default"); } + widget->styleBox3->insertStringList(otherGtk3Styles); } widget->styleKde3->setEnabled(gtk3installed); widget->styleBox3->setEnabled(gtk3installed); -- cgit v1.2.1