summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index c5c0d20b9..bb5e2a458 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -93,6 +93,7 @@ MainWindow::MainWindow() : QMainWindow(),
#endif
ui.mainErrorMessage->hide();
+ ui.newProfile->setEmptyState();
initialUiSetup();
readSettings();
ui.ListWidget->reload(DiveTripModel::TREE);
@@ -1334,6 +1335,12 @@ void MainWindow::on_profScaled_clicked(bool triggered)
TOOLBOX_PREF_PROFILE(zoomed_plot);
}
+void MainWindow::on_profTogglePicture_clicked(bool triggered)
+{
+ prefs.show_pictures_in_profile = triggered;
+ TOOLBOX_PREF_PROFILE(show_pictures_in_planner);
+}
+
#undef TOOLBOX_PREF_PROFILE
void MainWindow::on_actionExport_triggered()