diff options
Diffstat (limited to 'desktop-widgets/divelogimportdialog.cpp')
-rw-r--r-- | desktop-widgets/divelogimportdialog.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/desktop-widgets/divelogimportdialog.cpp b/desktop-widgets/divelogimportdialog.cpp index f8e44067d..638cf6094 100644 --- a/desktop-widgets/divelogimportdialog.cpp +++ b/desktop-widgets/divelogimportdialog.cpp @@ -1011,9 +1011,8 @@ void DiveLogImportDialog::on_buttonBox_accepted() } } - add_imported_dives(&table, &trips, false, false, true); - Command::clear(); - MainWindow::instance()->refreshDisplay(); + QString source = fileNames.size() == 1 ? fileNames[0] : tr("multiple files"); + Command::importDives(&table, &trips, false, false, true, source); } TagDragDelegate::TagDragDelegate(QObject *parent) : QStyledItemDelegate(parent) |