diff options
Diffstat (limited to 'qt-ui/locationinformation.cpp')
-rw-r--r-- | qt-ui/locationinformation.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp index 3ee9dd746..b433805e0 100644 --- a/qt-ui/locationinformation.cpp +++ b/qt-ui/locationinformation.cpp @@ -87,6 +87,13 @@ void LocationInformationWidget::setLocationId(uint32_t uuid) return; displayed_dive_site = *currentDs; + if (ui.currentLocation->currentText() != displayed_dive_site.name) { + // this will trigger setCurrentDiveSite again, and thus, + // will gethere with the correct uuid. + ui.currentLocation->setCurrentText(displayed_dive_site.name); + return; + } + if (displayed_dive_site.name) ui.diveSiteName->setText(displayed_dive_site.name); else |