Skip to content
Snippets Groups Projects
Commit df5d041d authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

unify if style

parent 7ab1e45e
No related branches found
No related tags found
1 merge request!2633merge fcts, rm unused fcts, etc
......@@ -128,10 +128,9 @@ void CentralWidget::updateViews(bool open)
return;
for (auto* button : m_view_selection_buttons->buttons())
button->setEnabled(true);
auto* filler =
m_view_selection_buttons_layout->itemAt(m_view_selection_buttons->buttons().size());
if (filler)
if (auto* fillerBtn = dynamic_cast<QToolButton*>(filler->widget()); fillerBtn)
if (auto* filler =
m_view_selection_buttons_layout->itemAt(m_view_selection_buttons->buttons().size()))
if (auto* fillerBtn = dynamic_cast<QToolButton*>(filler->widget()))
fillerBtn->setEnabled(true);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment