From b2bcf17dfa2d7280d15988d8034c80d6c80f269e Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Wed, 15 Dec 2021 14:52:01 +0100 Subject: Fixed previous commit --- src/slic3r/Config/Snapshot.cpp | 2 +- src/slic3r/GUI/GUI_App.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/Config/Snapshot.cpp b/src/slic3r/Config/Snapshot.cpp index 1e44dac7b..a0f386339 100644 --- a/src/slic3r/Config/Snapshot.cpp +++ b/src/slic3r/Config/Snapshot.cpp @@ -590,7 +590,7 @@ bool take_config_snapshot_cancel_on_error(const AppConfig &app_config, Snapshot: { try { const Snapshot *snapshot = &SnapshotDB::singleton().take_snapshot(app_config, reason, comment); - if (*psnapshot) + if (psnapshot) *psnapshot = snapshot; return true; } catch (std::exception &err) { diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index c947cecb9..0436ab1e6 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -979,7 +979,7 @@ std::string GUI_App::check_older_app_config(Semver current_version, bool backup) if (backup) { const Config::Snapshot* snapshot{ nullptr }; if (! GUI::Config::take_config_snapshot_cancel_on_error(*app_config, Config::Snapshot::SNAPSHOT_USER, "", - _u8L("Continue and import newer configuration?")), &snapshot) + _u8L("Continue and import newer configuration?"), &snapshot)) return {}; if (snapshot) { // Save snapshot ID before loading the alternate AppConfig, as loading the alternate AppConfig may fail. -- cgit v1.2.3