summaryrefslogtreecommitdiffstats
path: root/qthelper.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-12 06:48:51 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-12 10:21:16 -0700
commitef95bd9a2784db7468df01bebf0166f73179e7a4 (patch)
tree5be3eec97240e182a4e199c996b3493fc5cdaf68 /qthelper.cpp
parent57f2c81125f45b1f07122ad9c0295a6c76a5e4fe (diff)
downloadsubsurface-ef95bd9a2784db7468df01bebf0166f73179e7a4.tar.gz
Indicate that there are unsaved changes with a '*' in the window title
This seems to be a fairly common way to indicate this property. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qthelper.cpp')
-rw-r--r--qthelper.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/qthelper.cpp b/qthelper.cpp
index e476df429..5434bcd20 100644
--- a/qthelper.cpp
+++ b/qthelper.cpp
@@ -34,6 +34,7 @@
#include <QtConcurrent>
#include "divepicturewidget.h"
#include "subsurfacewebservices.h"
+#include "mainwindow.h"
#include <libxslt/documents.h>
@@ -1057,3 +1058,8 @@ extern "C" bool canReachCloudServer()
{
return CheckCloudConnection::checkServer();
}
+
+extern "C" void updateWindowTitle()
+{
+ MainWindow::instance()->setTitle();
+}