diff options
| author | Yoann Laissus <yoann.laissus@gmail.com> | 2010-03-14 23:34:45 +0100 | 
|---|---|---|
| committer | Yoann Laissus <yoann.laissus@gmail.com> | 2010-03-14 23:34:45 +0100 | 
| commit | 65f0f138d29e1f34626d8a25683bfe0a059fb8dc (patch) | |
| tree | 90cb98e1ace445f68d709085b135b81232663267 /src | |
| parent | Fix capitalisation of "Highlight All" (diff) | |
| download | rekonq-65f0f138d29e1f34626d8a25683bfe0a059fb8dc.tar.xz | |
Clear all the highlight when the find bar is closed with the esc key
Diffstat (limited to 'src')
| -rw-r--r-- | src/findbar.cpp | 1 | ||||
| -rw-r--r-- | src/mainwindow.cpp | 4 | 
2 files changed, 2 insertions, 3 deletions
diff --git a/src/findbar.cpp b/src/findbar.cpp index 7cbe9d17..c97fd1f9 100644 --- a/src/findbar.cpp +++ b/src/findbar.cpp @@ -69,7 +69,6 @@ FindBar::FindBar(QWidget *parent)      hideButton->setAutoRaise(true);      hideButton->setIcon(KIcon("dialog-close"));      connect(hideButton, SIGNAL(clicked()), this, SLOT(hide())); -    connect(hideButton, SIGNAL(clicked()), window, SLOT(highlightAll()));      layout->addWidget(hideButton);      layout->setAlignment(hideButton, Qt::AlignLeft | Qt::AlignTop); diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index e90a5903..b5df7acb 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -786,6 +786,8 @@ void MainWindow::findNext()      if (!currentTab())          return; +    highlightAll(); +          if(m_findBar->isHidden())      {          QPoint previous_position = currentTab()->view()->page()->currentFrame()->scrollPosition(); @@ -794,8 +796,6 @@ void MainWindow::findNext()          return;      } -    highlightAll(); -          QWebPage::FindFlags options = QWebPage::FindWrapsAroundDocument;      if (m_findBar->matchCase())          options |= QWebPage::FindCaseSensitively;  | 
