# HG changeset patch # User Teemu Piippo # Date 1632777669 -10800 # Node ID e085f36e4d9f305df8d13fd6dfa10bbca00e2b27 # Parent 185eb297dc1e8d4f066a3e0adbe9a330f51c7eca Update document tab label after saving diff -r 185eb297dc1e -r e085f36e4d9f src/mainwindow.cpp --- a/src/mainwindow.cpp Tue Sep 28 00:10:29 2021 +0300 +++ b/src/mainwindow.cpp Tue Sep 28 00:21:09 2021 +0300 @@ -301,6 +301,7 @@ if (not newPath.isEmpty()) { this->currentDocument()->setModelPath(newPath); + this->ui->tabs->setTabText(this->ui->tabs->currentIndex(), QFileInfo{newPath}.fileName()); this->actionSave(); } }