summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/findbar.cpp1
-rw-r--r--src/mainwindow.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/findbar.cpp b/src/findbar.cpp
index bb693ab0..4c780aca 100644
--- a/src/findbar.cpp
+++ b/src/findbar.cpp
@@ -82,6 +82,7 @@ FindBar::FindBar(QWidget *parent)
setFocusProxy(m_lineEdit);
m_lineEdit->setMaximumWidth(250);
connect(m_lineEdit, SIGNAL(textChanged(const QString &)), window, SLOT(find(const QString &)));
+ connect(m_lineEdit, SIGNAL(returnPressed()), window, SLOT(findNext()));
layout->addWidget(m_lineEdit);
// buttons
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index a6f1428f..a02910fd 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -807,6 +807,7 @@ void MainWindow::findNext()
bool found = currentTab()->view()->findText(m_lastSearch, options);
m_findBar->notifyMatch(found);
+
if(!found)
{
QPoint previous_position = currentTab()->view()->page()->currentFrame()->scrollPosition();