From c7979fe2fb8f60fbfa0378697177644f72a5d3f7 Mon Sep 17 00:00:00 2001 From: nils Date: Tue, 4 Jan 2011 15:29:48 +0000 Subject: minor beautifying git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@432 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- textedit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'textedit.cpp') 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(); } } -- cgit v1.2.3