From e2c94f8bd88e05e8aa8c4d201a5a3884d80f81cb Mon Sep 17 00:00:00 2001 From: nils Date: Sun, 23 Sep 2012 19:23:27 +0000 Subject: 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 --- TODO | 1 - findwidget.cpp | 6 +----- 2 files changed, 1 insertion(+), 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); } -- cgit v1.2.3