Gui: fix python syntax in C++ code that broke some compilers (#16614)

This commit is contained in:
bgbsww
2024-09-18 09:06:20 -04:00
committed by GitHub
parent df0665d789
commit 097fd970f5

View File

@@ -992,7 +992,7 @@ void Application::slotFinishRestoreDocument([[maybe_unused]] const App::Document
// allows them to 'FreeCAD.ConfigSet("SuppressRecomputeRequiredDialog", "True")`
const std::map<std::string, std::string>& Map = App::Application::Config();
auto value = Map.find("SuppressRecomputeRequiredDialog");
bool skip = value not_eq Map.end() and not value->second.empty(); // Any non empty string is true.
bool skip = value != Map.end() && ! value->second.empty(); // Any non empty string is true.
if (docs.empty() || skip )
return;
WaitCursor wc;