Fix bug where the ToolBar popup wasn't being opened

This was a new issue with combination of
9b90159d1b, probably we should close the
popup when the window is resized (instead of onSizeHint()).
This commit is contained in:
David Capello 2024-12-17 11:05:43 -03:00
parent 37d2be7668
commit c8e9b33ad3
1 changed files with 4 additions and 0 deletions

View File

@ -308,10 +308,14 @@ void ToolBar::onSizeHint(SizeHintEvent& ev)
iconsize.h += border().height();
ev.setSizeHint(iconsize);
#if 0 // The Dock widget will ask for sizeHint() of this widget when
// we open the popup, so we cannot close the recently closed
// popup.
if (m_popupWindow) {
closePopupWindow();
closeTipWindow();
}
#endif
}
void ToolBar::onResize(ui::ResizeEvent& ev)