summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-09-29 21:44:53 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-29 14:01:22 -0700
commit3923f54e106247f5bf97dfe30f37a710c3f0f7f1 (patch)
tree751e26ce40a0a96c9c015fc1797e26fcba019651
parent6e24762a6cab33abd34c3d28f47119b0ac25e7e6 (diff)
downloadsubsurface-3923f54e106247f5bf97dfe30f37a710c3f0f7f1.tar.gz
Cleanup: don't needlessly recalculate dive list on CSV import
On CSV import, the dive list was recalculated after the import dialog was shown. This is pointless, as no dives are yet imported. Remove. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r--desktop-widgets/mainwindow.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp
index 887b96230..e73ce2850 100644
--- a/desktop-widgets/mainwindow.cpp
+++ b/desktop-widgets/mainwindow.cpp
@@ -1828,8 +1828,6 @@ void MainWindow::on_actionImportDiveLog_triggered()
if (csvFiles.size()) {
DiveLogImportDialog *diveLogImport = new DiveLogImportDialog(csvFiles, this);
diveLogImport->show();
- process_imported_dives(false);
- refreshDisplay();
}
if (txtFiles.size()) {