diff options
-rw-r--r-- | core/divelist.c | 1 | ||||
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/core/divelist.c b/core/divelist.c index c53bcb983..9328336c6 100644 --- a/core/divelist.c +++ b/core/divelist.c @@ -1369,6 +1369,7 @@ void clear_dive_file_data() clear_dive(&displayed_dive); clear_device_nodes(); + clear_events(); reset_min_datafile_version(); clear_git_id(); diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index 693d1f60f..452cc322f 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -660,8 +660,6 @@ void MainWindow::closeCurrentFile() setTitle(); disableShortcuts(); setFileClean(); - - clear_events(); } void MainWindow::updateCloudOnlineStatus() |