mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-20 06:45:27 +00:00
Don't setLocationId when accept/reject changes
setLocationId will filter the dives, so ignore the visual changes when accepting / rejecting, it will only be triggered again when we are showing this dialog again. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
46aa97bfc4
commit
562ee7410c
1 changed files with 2 additions and 6 deletions
|
@ -140,10 +140,8 @@ void LocationInformationWidget::acceptChanges()
|
|||
if (dive_site_is_empty(currentDs)) {
|
||||
delete_dive_site(currentDs->uuid);
|
||||
displayed_dive.dive_site_uuid = 0;
|
||||
setLocationId(0);
|
||||
} else {
|
||||
setLocationId(currentDs->uuid);
|
||||
}
|
||||
|
||||
mark_divelist_changed(true);
|
||||
resetState();
|
||||
emit informationManagementEnded();
|
||||
|
@ -156,10 +154,8 @@ void LocationInformationWidget::rejectChanges()
|
|||
if (dive_site_is_empty(currentDs)) {
|
||||
delete_dive_site(currentDs->uuid);
|
||||
displayed_dive.dive_site_uuid = 0;
|
||||
setLocationId(0);
|
||||
} else {
|
||||
setLocationId(currentDs->uuid);
|
||||
}
|
||||
|
||||
resetState();
|
||||
emit informationManagementEnded();
|
||||
emit coordinatesChanged();
|
||||
|
|
Loading…
Add table
Reference in a new issue