diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-11-26 18:07:08 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-26 12:28:16 -0800 |
commit | c94101dd4fc6a92e0039aa4649f17db5f652c766 (patch) | |
tree | 7e125d0a67c1a7860b560a74570808be3f699d94 /qt-ui/mainwindow.cpp | |
parent | 97fd22b1be8370ae2bebfaa8054fd7636ad829f6 (diff) | |
download | subsurface-c94101dd4fc6a92e0039aa4649f17db5f652c766.tar.gz |
Changing the preferences should update the Add Dive interface
Since all internal units are in mm we needed to only update what's shown
on the interface.
Fixes #299
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 85047847b..67ec07e75 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -54,6 +54,7 @@ MainWindow::MainWindow() : helpView(0) connect(PreferencesDialog::instance(), SIGNAL(settingsChanged()), ui.ListWidget, SLOT(reloadHeaderActions())); connect(PreferencesDialog::instance(), SIGNAL(settingsChanged()), ui.ProfileWidget, SLOT(refresh())); connect(PreferencesDialog::instance(), SIGNAL(settingsChanged()), ui.InfoWidget, SLOT(updateDiveInfo())); + connect(PreferencesDialog::instance(), SIGNAL(settingsChanged()), ui.divePlanner, SLOT(settingsChanged())); ui.mainErrorMessage->hide(); initialUiSetup(); @@ -64,6 +65,7 @@ MainWindow::MainWindow() : helpView(0) ui.globe->reload(); ui.ListWidget->expand(ui.ListWidget->model()->index(0,0)); ui.ListWidget->scrollTo(ui.ListWidget->model()->index(0,0), QAbstractItemView::PositionAtCenter); + ui.divePlanner->settingsChanged(); } // this gets called after we download dives from a divecomputer |