aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--TODO1
-rw-r--r--findwidget.cpp6
2 files changed, 1 insertions, 6 deletions
diff --git a/TODO b/TODO
index 2ff7039..cad75aa 100644
--- a/TODO
+++ b/TODO
@@ -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);
}