diff options
Diffstat (limited to 'findwidget.cpp')
-rw-r--r-- | findwidget.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/findwidget.cpp b/findwidget.cpp index 4809b44..2ad7d31 100644 --- a/findwidget.cpp +++ b/findwidget.cpp @@ -71,11 +71,6 @@ void FindWidget::keyPressEvent( QKeyEvent* e ) case Qt::Key_Escape: this->closeSlot(); break; -/* case Qt::Key_Enter: - this->findNext(); - case Qt::Key_Return: - this->findNext(); -*/ case Qt::Key_F3: this->findNext(); break; @@ -84,6 +79,7 @@ void FindWidget::keyPressEvent( QKeyEvent* e ) void FindWidget::closeSlot() { if ( cursor.position() == -1) { + cursor = mTextpage->textCursor(); cursor.setPosition(0); mTextpage->setTextCursor(cursor); } |