summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r--desktop-widgets/mainwindow.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp
index ec2006405..dfa3f4c17 100644
--- a/desktop-widgets/mainwindow.cpp
+++ b/desktop-widgets/mainwindow.cpp
@@ -612,8 +612,7 @@ void MainWindow::on_actionCloudstorageopen_triggered()
if (!parse_file(fileNamePtr.data(), &dive_table))
setCurrentFile(fileNamePtr.data());
process_loaded_dives();
- if (autogroup)
- autogroup_dives();
+ autogroup_dives();
Command::clear();
hideProgressBar();
refreshDisplay();
@@ -1713,8 +1712,7 @@ void MainWindow::importFiles(const QStringList fileNames)
parse_file(fileNamePtr.data(), &table);
}
process_imported_dives(&table, false, false);
- if (autogroup)
- autogroup_dives();
+ autogroup_dives();
Command::clear();
refreshDisplay();
}
@@ -1738,8 +1736,7 @@ void MainWindow::loadFiles(const QStringList fileNames)
hideProgressBar();
updateRecentFiles();
process_loaded_dives();
- if (autogroup)
- autogroup_dives();
+ autogroup_dives();
Command::clear();
refreshDisplay();