summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-24 12:07:34 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-24 12:07:34 +0300
commit9c36b0237767cc42bfc74d77935f229f139a6663 (patch)
tree67adb5454292ede354acca08a87e3935704e3548 /src/gui/widgets
parentcc965406e7903e890fc0c797c2684efc5c4624a6 (diff)
downloadplus-9c36b0237767cc42bfc74d77935f229f139a6663.tar.gz
plus-9c36b0237767cc42bfc74d77935f229f139a6663.tar.bz2
plus-9c36b0237767cc42bfc74d77935f229f139a6663.tar.xz
plus-9c36b0237767cc42bfc74d77935f229f139a6663.zip
Fix possible crash in "reset windows".
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/window.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp
index caf7dae91..f2f7c1dd1 100644
--- a/src/gui/widgets/window.cpp
+++ b/src/gui/widgets/window.cpp
@@ -79,6 +79,8 @@
#include "gui/fonts/font.h"
+#include "gui/windows/setupwindow.h"
+
#include "gui/widgets/containerplacer.h"
#include "gui/widgets/layout.h"
@@ -219,6 +221,9 @@ Window::~Window()
if (gui)
gui->removeDragged(this);
+ if (setupWindow)
+ setupWindow->unregisterWindowForReset(this);
+
client->windowRemoved(this);
saveWindowState();