mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Desktop: Fix units displayed for 'Near dive sites' range.
Fix a bug causing the wrong units (m) to be shown on the Dive site management view if imperial units are as the system default. Signed-off-by: Michael Keller <github@ike.ch>
This commit is contained in:
parent
ffc9502535
commit
d44787a0b3
1 changed files with 2 additions and 1 deletions
|
@ -43,7 +43,6 @@ LocationInformationWidget::LocationInformationWidget(QWidget *parent) : QGroupBo
|
||||||
connect(&diveListNotifier, &DiveListNotifier::diveSiteChanged, this, &LocationInformationWidget::diveSiteChanged);
|
connect(&diveListNotifier, &DiveListNotifier::diveSiteChanged, this, &LocationInformationWidget::diveSiteChanged);
|
||||||
connect(&diveListNotifier, &DiveListNotifier::diveSiteDeleted, this, &LocationInformationWidget::diveSiteDeleted);
|
connect(&diveListNotifier, &DiveListNotifier::diveSiteDeleted, this, &LocationInformationWidget::diveSiteDeleted);
|
||||||
connect(qPrefUnits::instance(), &qPrefUnits::unit_systemChanged, this, &LocationInformationWidget::unitsChanged);
|
connect(qPrefUnits::instance(), &qPrefUnits::unit_systemChanged, this, &LocationInformationWidget::unitsChanged);
|
||||||
unitsChanged();
|
|
||||||
|
|
||||||
ui.diveSiteListView->setModel(&filter_model);
|
ui.diveSiteListView->setModel(&filter_model);
|
||||||
ui.diveSiteListView->setModelColumn(LocationInformationModel::NAME);
|
ui.diveSiteListView->setModelColumn(LocationInformationModel::NAME);
|
||||||
|
@ -244,6 +243,8 @@ void LocationInformationWidget::initFields(dive_site *ds)
|
||||||
filter_model.set(0, zero_location);
|
filter_model.set(0, zero_location);
|
||||||
clearLabels();
|
clearLabels();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unitsChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
void LocationInformationWidget::on_GPSbutton_clicked()
|
void LocationInformationWidget::on_GPSbutton_clicked()
|
||||||
|
|
Loading…
Reference in a new issue