summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-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;