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:
authortamasmeszaros <meszaros.q@gmail.com>2020-01-27 16:31:41 +0300
committertamasmeszaros <meszaros.q@gmail.com>2020-01-27 16:31:49 +0300
commitbe8f464bf8f7e709a482c5f774f411b330aa4952 (patch)
treed0e475b2a85193d571ebee169e09ae78f3532249 /src/slic3r/GUI/GUI_ObjectList.hpp
parent71574b2dd45ad1c88811eee9947cd16ac70cfab9 (diff)
Remove some gtk warnings on application start.
Diffstat (limited to 'src/slic3r/GUI/GUI_ObjectList.hpp')
-rw-r--r--src/slic3r/GUI/GUI_ObjectList.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/slic3r/GUI/GUI_ObjectList.hpp b/src/slic3r/GUI/GUI_ObjectList.hpp
index a5a72ad8c..dc0953d3b 100644
--- a/src/slic3r/GUI/GUI_ObjectList.hpp
+++ b/src/slic3r/GUI/GUI_ObjectList.hpp
@@ -171,6 +171,12 @@ private:
SettingsBundle m_freq_settings_sla;
#endif
+ inline void ensure_current_item_visible()
+ {
+ if (const auto &item = this->GetCurrentItem())
+ this->EnsureVisible(item);
+ }
+
public:
ObjectList(wxWindow* parent);
~ObjectList();