summaryrefslogtreecommitdiffstats
path: root/divelist.c
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 /divelist.c
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 'divelist.c')
-rw-r--r--divelist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/divelist.c b/divelist.c
index 773f52713..468373591 100644
--- a/divelist.c
+++ b/divelist.c
@@ -43,6 +43,7 @@
#include "divelist.h"
#include "display.h"
#include "planner.h"
+#include "qthelperfromc.h"
static short dive_list_changed = false;
@@ -920,6 +921,7 @@ void combine_trips(struct dive_trip *trip_a, struct dive_trip *trip_b)
void mark_divelist_changed(int changed)
{
dive_list_changed = changed;
+ updateWindowTitle();
}
int unsaved_changes()