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

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2019-10-02 23:50:55 +0300
committerYuSanka <yusanka@gmail.com>2019-10-02 23:50:55 +0300
commitb3603a09fcc04dd9dda26824574c0fa0399c594c (patch)
treefc5c01cb0d06abff4e89404b8b60d4502595daf2 /src/slic3r/GUI/Preset.hpp
parent546ad99306b408846572dfbfecf32f9c89ca8ae8 (diff)
Fixed a bug: Wrong save of a preset if the preset is already exist.
Step to repro: 1. Select system "Some_preset" preset 2. Make some changes 3. Save preset with "Some_preset - Copy" name. => "Some_preset - Copy" is selected, there is/are marked option(s) only different from system preset. repeate 1-3 steps => "Some_preset - Copy" is selected, there is/are marked option(s) different from DEFAULT preset.
Diffstat (limited to 'src/slic3r/GUI/Preset.hpp')
-rw-r--r--src/slic3r/GUI/Preset.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/slic3r/GUI/Preset.hpp b/src/slic3r/GUI/Preset.hpp
index e1efdc1ef..056b03700 100644
--- a/src/slic3r/GUI/Preset.hpp
+++ b/src/slic3r/GUI/Preset.hpp
@@ -276,6 +276,9 @@ public:
// Delete the current preset, activate the first visible preset.
// returns true if the preset was deleted successfully.
bool delete_current_preset();
+ // Delete the current preset, activate the first visible preset.
+ // returns true if the preset was deleted successfully.
+ bool delete_preset(const std::string& name);
// Load default bitmap to be placed at the wxBitmapComboBox of a MainFrame.
void load_bitmap_default(wxWindow *window, const std::string &file_name);