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 committed by Subsurface CI
parent 5671a634a8
commit 9c8b8206cf

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