diff options
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 2 | ||||
-rw-r--r-- | qt-models/divetripmodel.cpp | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index 9d2b31136..d995c7a36 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -547,7 +547,6 @@ void MainWindow::on_actionCloudstorageopen_triggered() if (!parse_file(fileNamePtr.data(), &dive_table, &trip_table, &dive_site_table)) setCurrentFile(fileNamePtr.data()); process_loaded_dives(); - Command::clear(); hideProgressBar(); refreshDisplay(); } @@ -1695,7 +1694,6 @@ void MainWindow::loadFiles(const QStringList fileNames) hideProgressBar(); updateRecentFiles(); process_loaded_dives(); - Command::clear(); refreshDisplay(); diff --git a/qt-models/divetripmodel.cpp b/qt-models/divetripmodel.cpp index 6c1a7218a..a9fd3490b 100644 --- a/qt-models/divetripmodel.cpp +++ b/qt-models/divetripmodel.cpp @@ -467,6 +467,7 @@ void DiveTripModelBase::initSelection() void DiveTripModelBase::clear() { + Command::clear(); // If we clear the dive list, all undo-information becomes stalte. beginResetModel(); clear_dive_file_data(); clearData(); |