summaryrefslogtreecommitdiff
path: root/src/gui/widgets/windowcontainer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-02-12 03:40:01 +0300
committerAndrei Karas <akaras@inbox.ru>2018-02-12 19:17:06 +0300
commit0a47f5c44ddd5fb5157d116ffe0f5ee5f4207eb0 (patch)
treee726c4c04bef0639aaee1bc4d903f94e7ce728c1 /src/gui/widgets/windowcontainer.h
parent0e1d656e85e1bbc80e9e8adcfb2c07a8bc0d4bb8 (diff)
downloadManaVerse-0a47f5c44ddd5fb5157d116ffe0f5ee5f4207eb0.tar.gz
ManaVerse-0a47f5c44ddd5fb5157d116ffe0f5ee5f4207eb0.tar.bz2
ManaVerse-0a47f5c44ddd5fb5157d116ffe0f5ee5f4207eb0.tar.xz
ManaVerse-0a47f5c44ddd5fb5157d116ffe0f5ee5f4207eb0.zip
Dont allow add same window into delete list more than once.
Diffstat (limited to 'src/gui/widgets/windowcontainer.h')
-rw-r--r--src/gui/widgets/windowcontainer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/windowcontainer.h b/src/gui/widgets/windowcontainer.h
index 10c96e88d..0c04849e6 100644
--- a/src/gui/widgets/windowcontainer.h
+++ b/src/gui/widgets/windowcontainer.h
@@ -25,6 +25,8 @@
#include "gui/widgets/container.h"
+#include <set>
+
/**
* A window container. This container adds functionality for more convenient
* widget (windows in particular) destruction.
@@ -67,6 +69,7 @@ class WindowContainer notfinal : public Container
typedef STD_VECTOR<Widget*> Widgets;
typedef Widgets::iterator WidgetIterator;
Widgets mDeathList;
+ std::set<Widget*> mDeathSet;
};
extern WindowContainer *windowContainer;