mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
57f2c81125
commit
ef95bd9a27
5 changed files with 12 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue