From: Frank Reininghaus Date: Tue, 11 Sep 2012 17:17:40 +0000 (+0200) Subject: Simplify boolean expression X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/eb54d5b3481e68f45ba93b0224b3d83930a58f88 Simplify boolean expression Thanks to André Wöbbeking for noticing that this was unnecessarily complex! --- diff --git a/src/search/dolphinsearchbox.cpp b/src/search/dolphinsearchbox.cpp index a9a4b667a..6f1c736b0 100644 --- a/src/search/dolphinsearchbox.cpp +++ b/src/search/dolphinsearchbox.cpp @@ -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(); }