diff --git a/GUI/View/Setup/MaskEditorToolpanel.cpp b/GUI/View/Setup/MaskEditorToolpanel.cpp index c30334894f662bbe5f9a47171b1051867809e6e0..cd28a96b60f730d735e5ec6e90960d27f9be24fa 100644 --- a/GUI/View/Setup/MaskEditorToolpanel.cpp +++ b/GUI/View/Setup/MaskEditorToolpanel.cpp @@ -144,16 +144,9 @@ void MaskEditorToolpanel::setCurrentMaskItem(MaskItem* maskItem) GUI::Util::Layout::clearLayout(m_editor_layout); m_currentMaskItem = maskItem; - - createMaskEditorUI(); -} - -void MaskEditorToolpanel::createMaskEditorUI() -{ if (!m_currentMaskItem) return; - auto* maskItem = m_currentMaskItem; // shorthand // -- mask value (only if not RoI) if (!dynamic_cast<RegionOfInterestItem*>(maskItem)) { const auto maskValueGetter = [maskItem] { return maskItem->maskValue(); }; diff --git a/GUI/View/Setup/MaskEditorToolpanel.h b/GUI/View/Setup/MaskEditorToolpanel.h index 9bee5a827801f7d18c721a819f9b74425d5cc224..245378c29f041ba0c8353348d81334befb4f3c40 100644 --- a/GUI/View/Setup/MaskEditorToolpanel.h +++ b/GUI/View/Setup/MaskEditorToolpanel.h @@ -58,9 +58,6 @@ private: void addMaskCheckBox(const QString& title, std::function<bool()> getter, std::function<void(bool)> setter); - //! Creates the UI to edit the current mask's properties - void createMaskEditorUI(); - QListView* m_listView; MaskContainerModel* m_maskContainerModel; QFormLayout* m_editor_layout;