From cbf12dbaa27add9bfdfda728d7c952429262ca99 Mon Sep 17 00:00:00 2001 From: Yoann Laissus Date: Fri, 19 Feb 2010 15:42:22 +0100 Subject: Fix a small regression : the color of the lineEdit of the findBar is not correctly updated when it's empty --- src/mainwindow.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src') 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; -- cgit v1.2.1