Fix PopupWindow size hint when it doesn't have a title

This commit is contained in:
David Capello 2015-12-15 17:06:54 -03:00
parent d8417df35f
commit e422acff1f

View File

@ -22,7 +22,7 @@ using namespace gfx;
PopupWindow::PopupWindow(const std::string& text,
ClickBehavior clickBehavior,
EnterBehavior enterBehavior)
: Window(WithTitleBar, text)
: Window(text.empty() ? WithoutTitleBar: WithTitleBar, text)
, m_clickBehavior(clickBehavior)
, m_enterBehavior(enterBehavior)
, m_filtering(false)