Compare commits

..

2 commits

Author SHA1 Message Date
Dirk Hohndel
8fbb207879
Merge 5d38fd3fe8 into 0e7d3a6466 2024-11-03 08:23:09 +13:00
Michael Keller
0e7d3a6466 Desktop: Fix Saving of the Divesite Country.
Fix a bug in the edit divesite country command preventing the
country of the divesite from ever being saved.

Fixes #4357.

Signed-off-by: Michael Keller <github@ike.ch>
2024-11-03 00:31:09 +13:00

View file

@ -243,7 +243,7 @@ EditDiveSiteCountry::EditDiveSiteCountry(dive_site *dsIn, const QString &country
bool EditDiveSiteCountry::workToBeDone() bool EditDiveSiteCountry::workToBeDone()
{ {
return value == taxonomy_get_country(ds->taxonomy); return value != taxonomy_get_country(ds->taxonomy);
} }
void EditDiveSiteCountry::redo() void EditDiveSiteCountry::redo()