summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/divelogimportdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/divelogimportdialog.cpp')
-rw-r--r--desktop-widgets/divelogimportdialog.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop-widgets/divelogimportdialog.cpp b/desktop-widgets/divelogimportdialog.cpp
index 151488c0b..668b230a8 100644
--- a/desktop-widgets/divelogimportdialog.cpp
+++ b/desktop-widgets/divelogimportdialog.cpp
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-2.0
#include "desktop-widgets/divelogimportdialog.h"
#include "desktop-widgets/mainwindow.h"
+#include "desktop-widgets/command.h"
#include "core/color.h"
#include "ui_divelogimportdialog.h"
#include <QShortcut>
@@ -1010,7 +1011,7 @@ void DiveLogImportDialog::on_buttonBox_accepted()
process_imported_dives(&table, false, false);
autogroup_dives();
- MainWindow::instance()->undoStack->clear();
+ Command::clear();
MainWindow::instance()->refreshDisplay();
}