aboutsummaryrefslogtreecommitdiffstats
path: root/textedit.cpp
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-01-04 15:29:48 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-01-04 15:29:48 +0000
commitc7979fe2fb8f60fbfa0378697177644f72a5d3f7 (patch)
treea7eabf2c763c010aaa1bfdff4fcd7e218d07f018 /textedit.cpp
parentafter closing a tab, the editor field is still selected (diff)
downloadgpg4usb-c7979fe2fb8f60fbfa0378697177644f72a5d3f7.tar.gz
gpg4usb-c7979fe2fb8f60fbfa0378697177644f72a5d3f7.zip
minor beautifying
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@432 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'textedit.cpp')
-rw-r--r--textedit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/textedit.cpp b/textedit.cpp
index c1cc3d7..76b641b 100644
--- a/textedit.cpp
+++ b/textedit.cpp
@@ -195,6 +195,7 @@ bool TextEdit::closeFile()
void TextEdit::closeTab()
{
removeTab(tabWidget->currentIndex());
+ curPage()->getTextPage()->setFocus();
}
void TextEdit::removeTab(int index)
@@ -208,7 +209,6 @@ void TextEdit::removeTab(int index)
curPage()->close();
tabWidget->removeTab(index);
- curPage()->getTextPage()->setFocus();
}
}