diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-10 21:58:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-10 21:58:08 +0300 |
commit | f3af5f96c82044769ac2d1194cfa1ea0aca17bf5 (patch) | |
tree | 6722a88198292e82e0f00bf24a71bee3be6c120d /src/gui/widgets/window.cpp | |
parent | cb6f070779f94f3d69ba7576affb0588b61e7b7c (diff) | |
download | manaplus-f3af5f96c82044769ac2d1194cfa1ea0aca17bf5.tar.gz manaplus-f3af5f96c82044769ac2d1194cfa1ea0aca17bf5.tar.bz2 manaplus-f3af5f96c82044769ac2d1194cfa1ea0aca17bf5.tar.xz manaplus-f3af5f96c82044769ac2d1194cfa1ea0aca17bf5.zip |
Add close button to all shortcuts windows.
Diffstat (limited to 'src/gui/widgets/window.cpp')
-rw-r--r-- | src/gui/widgets/window.cpp | 5 |
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 |