Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2018-05-16 11:11:00 +0300
committerbubnikv <bubnikv@gmail.com>2018-05-16 11:11:00 +0300
commit5c44453ced6a1b80061220bbc79d754a4f4a6b8e (patch)
tree0b4f28c53ec6414013af3c6fb094b874f07e9da5 /xs/src/slic3r/GUI/PresetBundle.cpp
parent4b87f71bbc46e2b974850fab2846c2dfadd70fd2 (diff)
Fixed loading of configuration files after reverting to a snapshot
storing the old configuration format.
Diffstat (limited to 'xs/src/slic3r/GUI/PresetBundle.cpp')
-rw-r--r--xs/src/slic3r/GUI/PresetBundle.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/xs/src/slic3r/GUI/PresetBundle.cpp b/xs/src/slic3r/GUI/PresetBundle.cpp
index 63b6a4e0c..84fa3a92f 100644
--- a/xs/src/slic3r/GUI/PresetBundle.cpp
+++ b/xs/src/slic3r/GUI/PresetBundle.cpp
@@ -210,6 +210,10 @@ std::string PresetBundle::load_system_presets()
errors_cummulative += "\n";
}
}
+ if (first) {
+ // No config bundle loaded, reset.
+ this->reset(false);
+ }
return errors_cummulative;
}