mirror of https://github.com/aseprite/aseprite.git
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:
parent
37d2be7668
commit
c8e9b33ad3
|
@ -308,10 +308,14 @@ void ToolBar::onSizeHint(SizeHintEvent& ev)
|
||||||
iconsize.h += border().height();
|
iconsize.h += border().height();
|
||||||
ev.setSizeHint(iconsize);
|
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) {
|
if (m_popupWindow) {
|
||||||
closePopupWindow();
|
closePopupWindow();
|
||||||
closeTipWindow();
|
closeTipWindow();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void ToolBar::onResize(ui::ResizeEvent& ev)
|
void ToolBar::onResize(ui::ResizeEvent& ev)
|
||||||
|
|
Loading…
Reference in New Issue