diff options
author | Vojtech Bubnik <bubnikv@gmail.com> | 2021-12-15 16:52:01 +0300 |
---|---|---|
committer | Vojtech Bubnik <bubnikv@gmail.com> | 2021-12-15 16:52:01 +0300 |
commit | b2bcf17dfa2d7280d15988d8034c80d6c80f269e (patch) | |
tree | 82c3a065a661beab1c05335141b062f509f0be33 | |
parent | 5ba9d59307ff590bc71926d3c5e3ebddab9f9835 (diff) |
Fixed previous commit
-rw-r--r-- | src/slic3r/Config/Snapshot.cpp | 2 | ||||
-rw-r--r-- | 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. |