]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Simplify boolean expression
authorFrank Reininghaus <frank78ac@googlemail.com>
Tue, 11 Sep 2012 17:17:40 +0000 (19:17 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Tue, 11 Sep 2012 17:17:40 +0000 (19:17 +0200)
Thanks to André Wöbbeking for noticing that this was unnecessarily
complex!

src/search/dolphinsearchbox.cpp

index a9a4b667aa999c31acd58ae4783f35820efa2415..6f1c736b07626a4138d545c8fb94bbc9bb863cea 100644 (file)
@@ -280,7 +280,7 @@ void DolphinSearchBox::saveSettings()
 {
     SearchSettings::setLocation(m_fromHereButton->isChecked() ? "FromHere" : "Everywhere");
     SearchSettings::setWhat(m_fileNameButton->isChecked() ? "FileName" : "Content");
-    SearchSettings::setShowFacetsWidget(m_facetsToggleButton->isChecked() ? true : false);
+    SearchSettings::setShowFacetsWidget(m_facetsToggleButton->isChecked());
     SearchSettings::self()->writeConfig();
 }