Desktop: Close Warning when Closing Dive.

Signed-off-by: Michael Keller <github@ike.ch>
This commit is contained in:
Michael Keller 2025-01-16 16:23:01 +13:00
parent 297bac2988
commit 9ec1190a30

View file

@ -509,6 +509,8 @@ bool MainWindow::okToClose(QString message)
void MainWindow::closeCurrentFile()
{
ui.mainErrorMessage->hideNotification();
/* free the dives and trips */
clear_git_id();
clear_dive_file_data(); // this clears all the core data structures and resets the models