mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Show the correct dive_site on the manage combobox
When triggering the dive_site management, we need to get the uuid that was send to us and set it as the current dive_site on the combobox, the dialog can fill all required info for us. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
609688b489
commit
b7ec57bdef
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue