summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoann Laissus <yoann.laissus@gmail.com>2010-02-19 15:42:22 +0100
committerYoann Laissus <yoann.laissus@gmail.com>2010-02-19 15:42:22 +0100
commitcbf12dbaa27add9bfdfda728d7c952429262ca99 (patch)
treef6753726f0168d4d9b1d054737bb04c0d95cd14e
parentThe text is now instantly checked when the checkbox match case is toggled (diff)
downloadrekonq-cbf12dbaa27add9bfdfda728d7c952429262ca99.tar.xz
Fix a small regression : the color of the lineEdit of the findBar is not correctly updated when it's empty
-rw-r--r--src/mainwindow.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index f9f211ca..22cf8c6c 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -774,11 +774,6 @@ void MainWindow::find(const QString & search)
return;
m_lastSearch = search;
- if(m_lastSearch.isEmpty())
- {
- currentTab()->view()->page()->focusNextPrevChild(true);
- return;
- }
findNext();
}
@@ -788,7 +783,7 @@ void MainWindow::findNext()
if (!currentTab())
return;
- if(m_lastSearch.isEmpty() || m_findBar->isHidden())
+ if(m_findBar->isHidden())
{
currentTab()->view()->page()->focusNextPrevChild(true);
return;
@@ -810,7 +805,7 @@ void MainWindow::findPrevious()
if (!currentTab())
return;
- if(m_lastSearch.isEmpty() || m_findBar->isHidden())
+ if(m_findBar->isHidden())
{
currentTab()->view()->page()->focusNextPrevChild(true);
return;