diff options
-rw-r--r-- | src/mainwindow.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 7c30198f..a6f1428f 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -795,9 +795,9 @@ void MainWindow::findNext() if(m_findBar->isHidden()) { - QPoint test = currentTab()->view()->page()->currentFrame()->scrollPosition(); + QPoint previous_position = currentTab()->view()->page()->currentFrame()->scrollPosition(); currentTab()->view()->page()->focusNextPrevChild(true); - currentTab()->view()->page()->currentFrame()->setScrollPosition(test); + currentTab()->view()->page()->currentFrame()->setScrollPosition(previous_position); return; } @@ -809,9 +809,9 @@ void MainWindow::findNext() m_findBar->notifyMatch(found); if(!found) { - QPoint test = currentTab()->view()->page()->currentFrame()->scrollPosition(); + QPoint previous_position = currentTab()->view()->page()->currentFrame()->scrollPosition(); currentTab()->view()->page()->focusNextPrevChild(true); - currentTab()->view()->page()->currentFrame()->setScrollPosition(test); + currentTab()->view()->page()->currentFrame()->setScrollPosition(previous_position); } } |