[rkward/work/remove_khtml] rkward/misc: Small fix
Thomas Friedrichsmeier
thomas.friedrichsmeier at ruhr-uni-bochum.de
Wed Feb 25 15:41:59 UTC 2015
Git commit f2fa3fdf7f7944de976c0a2fc1fcaf68ac69077a by Thomas Friedrichsmeier.
Committed on 25/02/2015 at 15:41.
Pushed by tfry into branch 'work/remove_khtml'.
Small fix
M +2 -2 rkward/misc/rkfindbar.cpp
http://commits.kde.org/rkward/f2fa3fdf7f7944de976c0a2fc1fcaf68ac69077a
diff --git a/rkward/misc/rkfindbar.cpp b/rkward/misc/rkfindbar.cpp
index 5b0ab71..0e9c06a 100644
--- a/rkward/misc/rkfindbar.cpp
+++ b/rkward/misc/rkfindbar.cpp
@@ -117,6 +117,7 @@ bool RKFindBar::isOptionSet (const RKFindBar::FindOptions option) const {
void RKFindBar::searchChanged () {
RK_TRACE (APP);
+ term_edit->lineEdit ()->setPalette (regular_palette);
term_edit->lineEdit ()->setFocus ();
if (default_actions.contains (FindAsYouType) && default_actions[FindAsYouType]->isChecked ()) forward ();
}
@@ -137,8 +138,7 @@ void RKFindBar::doSearch (bool backward) {
bool found = false;
QString term = term_edit->currentText ();
findRequest (term, backward, this, &found);
- if (found || term.isEmpty ()) term_edit->lineEdit ()->setPalette (regular_palette);
- else term_edit->lineEdit ()->setPalette (nomatch_palette);
+ if (!(found || term.isEmpty ())) term_edit->lineEdit ()->setPalette (nomatch_palette);
}
void RKFindBar::activate () {
More information about the rkward-tracker
mailing list