From e422acff1fbb4905aaa341baa73d97fc66d5007d Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 15 Dec 2015 17:06:54 -0300 Subject: [PATCH] Fix PopupWindow size hint when it doesn't have a title --- src/ui/popup_window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/popup_window.cpp b/src/ui/popup_window.cpp index 22c71c3a6..f993e6491 100644 --- a/src/ui/popup_window.cpp +++ b/src/ui/popup_window.cpp @@ -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)