aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r--desktop-widgets/mainwindow.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp
index e84b6160a..f685a2b74 100644
--- a/desktop-widgets/mainwindow.cpp
+++ b/desktop-widgets/mainwindow.cpp
@@ -774,6 +774,11 @@ void MainWindow::showProfile()
void MainWindow::on_actionPreferences_triggered()
{
+ // the refreshPages() is currently done for just one
+ // reason. Allow the user to define a default cylinder that
+ // is not hardcoded but coming from the logbook.
+ PreferencesDialog::instance()->refreshPages();
+
PreferencesDialog::instance()->show();
PreferencesDialog::instance()->raise();
}