mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-08 06:16:16 +00:00
Make sure dive info is displayed correctly at start
Commit cdae2869d1dd ("Show the datafile name even with no dives") was a little too aggressive in making sure that we show the correct window title - we only should call show_dive_info(NULL) if there is indeed no dive in the dive table - otherwise we display empty dive info at program start. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
2cadc70e3d
commit
d7465129bb
1 changed files with 2 additions and 1 deletions
1
main.c
1
main.c
|
@ -249,6 +249,7 @@ int main(int argc, char **argv)
|
||||||
set_filename(filename, FALSE);
|
set_filename(filename, FALSE);
|
||||||
}
|
}
|
||||||
report_dives(imported);
|
report_dives(imported);
|
||||||
|
if (dive_table.nr == 0)
|
||||||
show_dive_info(NULL);
|
show_dive_info(NULL);
|
||||||
run_ui();
|
run_ui();
|
||||||
exit_ui();
|
exit_ui();
|
||||||
|
|
Loading…
Add table
Reference in a new issue