mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
97fd22b1be
commit
c94101dd4f
3 changed files with 19 additions and 22 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue