From 0e7d3a6466be86f281b49564137f3a7001f7a093 Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Sat, 2 Nov 2024 20:59:23 +1300 Subject: [PATCH] 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 --- commands/command_divesite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/command_divesite.cpp b/commands/command_divesite.cpp index fd706007c..9ca9e8e8e 100644 --- a/commands/command_divesite.cpp +++ b/commands/command_divesite.cpp @@ -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()