aboutsummaryrefslogtreecommitdiffstats
path: root/textedit.cpp
diff options
context:
space:
mode:
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();
}
}