aboutsummaryrefslogtreecommitdiffstats
path: root/textedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'textedit.cpp')
-rw-r--r--textedit.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/textedit.cpp b/textedit.cpp
index 16cbd84..bc1caf8 100644
--- a/textedit.cpp
+++ b/textedit.cpp
@@ -392,6 +392,8 @@ void TextEdit::loadFile(const QString &fileName)
curTextPage()->setPlainText(in.readAll());
QApplication::restoreOverrideCursor();
curPage()->setFilePath(fileName);
+ tabWidget->setTabText(tabWidget->currentIndex(), strippedName(fileName));
+
// statusBar()->showMessage(tr("File loaded"), 2000);
}