mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
Change the definition of "dive table changed"
We only ask to save changes if the dive table was changed. Yet we didn't consider the dive table changed if it was initially empty. So starting with an empty file and making changes we were quitting without saving. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
3b907d8479
commit
b4d55c8b59
1 changed files with 2 additions and 2 deletions
4
main.c
4
main.c
|
@ -140,8 +140,8 @@ void report_dives(gboolean is_imported)
|
|||
if (last && last->number)
|
||||
try_to_renumber(last, preexisting);
|
||||
|
||||
/* did we have dives in the table and added more? */
|
||||
if (last && preexisting != dive_table.nr)
|
||||
/* did we add dives to the dive table? */
|
||||
if (preexisting != dive_table.nr)
|
||||
mark_divelist_changed(TRUE);
|
||||
}
|
||||
dive_table.preexisting = dive_table.nr;
|
||||
|
|
Loading…
Reference in a new issue