diff options
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 01c342ad6..f344b1b82 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -1270,6 +1270,9 @@ void MainTab::on_location_currentTextChanged(const QString &text) } if (current_dive && text == QString(get_dive_site_by_uuid(current_dive->dive_site_uuid)->name)) return; + + uint32_t uuid = ui.location->currentData(LocationInformationModel::DIVE_SITE_UUID).toInt(); + displayed_dive.dive_site_uuid = uuid; markChangedWidget(ui.location); } |