From ef95bd9a2784db7468df01bebf0166f73179e7a4 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 12 Jun 2015 06:48:51 -0700 Subject: 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 --- divelist.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'divelist.c') 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() -- cgit v1.2.3-70-g09d2