summaryrefslogtreecommitdiff
path: root/src/gui/widgets/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/window.cpp')
-rw-r--r--src/gui/widgets/window.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp
index cd8da96bf..471b273be 100644
--- a/src/gui/widgets/window.cpp
+++ b/src/gui/widgets/window.cpp
@@ -157,7 +157,8 @@ Window::Window(const std::string &caption,
mStickyButtonLock(false),
mPlayVisibleSound(false),
mInit(false),
- mTextChanged(true)
+ mTextChanged(true),
+ mAllowClose(false)
{
logger->log("Window::Window(\"%s\")", caption.c_str());
@@ -722,6 +723,8 @@ void Window::widgetHidden(const Event &event A_UNUSED)
void Window::setCloseButton(const bool flag)
{
mCloseWindowButton = flag;
+ if (flag)
+ mAllowClose = true;
}
bool Window::isResizable() const