diff options
-rw-r--r-- | TODO | 1 | ||||
-rw-r--r-- | findwidget.cpp | 6 |
2 files changed, 1 insertions, 6 deletions
@@ -5,7 +5,6 @@ Release 0.4 - replace gpgme with kgpg (lots of work and trouble!!!) - Refresh key from keyserver [DONE] - add find action in textedit [DONE] - - BUG: hit strg+f and then esc -> textedit uneditable, same after hitting escape after entering a non found text - Change private key password - create revocation file - on key generation 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); } |