diff options
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/mainwindow.cpp | 3 | ||||
-rw-r--r-- | qt-ui/mainwindow.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 80f9fc9f1..571eb15f1 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -1429,7 +1429,8 @@ void MainWindow::setTitle(enum MainWindowTitleFormat format) QFile f(existing_filename); QFileInfo fileInfo(f); QString fileName(fileInfo.fileName()); - setWindowTitle("Subsurface: " + fileName); + QString unsaved = (unsaved_changes() ? " *" : ""); + setWindowTitle("Subsurface: " + fileName + unsaved); break; } } diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h index 6a5f95921..9bed1d05f 100644 --- a/qt-ui/mainwindow.h +++ b/qt-ui/mainwindow.h @@ -72,7 +72,7 @@ public: DivePlannerWidget *divePlannerWidget(); PlannerSettingsWidget *divePlannerSettingsWidget(); LocationInformationWidget *locationInformationWidget(); - void setTitle(enum MainWindowTitleFormat format); + void setTitle(enum MainWindowTitleFormat format = MWTF_FILENAME); // Some shortcuts like "change DC" or "copy/paste dive components" // should only be enabled when the profile's visible. |