aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2012-09-23 19:23:27 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2012-09-23 19:23:27 +0000
commite2c94f8bd88e05e8aa8c4d201a5a3884d80f81cb (patch)
treed438daaab5c25cdd91faff283b7e748c9065ef3e
parentdont jump to next hit after hitting escape (diff)
downloadgpg4usb-e2c94f8bd88e05e8aa8c4d201a5a3884d80f81cb.tar.gz
gpg4usb-e2c94f8bd88e05e8aa8c4d201a5a3884d80f81cb.zip
textedit is editable after hitting escape after having no found match in findwidget
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@968 34ebc366-c3a9-4b3c-9f84-69acf7962910
-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);
}