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>
This commit is contained in:
Michael Keller 2024-11-02 20:59:23 +13:00
parent 534bf68639
commit 0e7d3a6466

View file

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