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-04-13 15:49:33 +0300
committerbubnikv <bubnikv@gmail.com>2018-04-13 15:49:33 +0300
commit82890ec815080898c601222b8e370d4475a3af2e (patch)
tree22775fa5d1df06add5017f60ade19837dabd49ac /xs/src/slic3r/GUI/Tab.cpp
parent0f6fc689aa1589fdfb7fc240ecc32424e480127f (diff)
Removed some obsolete Perl binding.
Added Version Index "version" method. Implemented automatic selection of default_print_profile and default_filament_profile, when the print / filament profiles are not compatible with the selected printer profile. Fixed selection of a printer profile, if the currently selected printer profile becomes invisible.
Diffstat (limited to 'xs/src/slic3r/GUI/Tab.cpp')
-rw-r--r--xs/src/slic3r/GUI/Tab.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/xs/src/slic3r/GUI/Tab.cpp b/xs/src/slic3r/GUI/Tab.cpp
index 940987536..ed2b4b951 100644
--- a/xs/src/slic3r/GUI/Tab.cpp
+++ b/xs/src/slic3r/GUI/Tab.cpp
@@ -540,7 +540,8 @@ void Tab::load_key_value(std::string opt_key, boost::any value)
change_opt_value(*m_config, opt_key, value);
// Mark the print & filament enabled if they are compatible with the currently selected preset.
if (opt_key.compare("compatible_printers") == 0) {
- m_preset_bundle->update_compatible_with_printer(0);
+ // Don't select another profile if this profile happens to become incompatible.
+ m_preset_bundle->update_compatible_with_printer(false);
}
m_presets->update_dirty_ui(m_presets_choice);
on_presets_changed();
@@ -1772,7 +1773,7 @@ void Tab::rebuild_page_tree()
// Called by the UI combo box when the user switches profiles.
// Select a preset by a name.If !defined(name), then the default preset is selected.
// If the current profile is modified, user is asked to save the changes.
-void Tab::select_preset(std::string preset_name /*= ""*/)
+void Tab::select_preset(const std::string &preset_name /*= ""*/)
{
std::string name = preset_name;
auto force = false;