diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-02-12 03:40:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-02-12 19:17:06 +0300 |
commit | 0a47f5c44ddd5fb5157d116ffe0f5ee5f4207eb0 (patch) | |
tree | e726c4c04bef0639aaee1bc4d903f94e7ce728c1 /src/gui/widgets/windowcontainer.h | |
parent | 0e1d656e85e1bbc80e9e8adcfb2c07a8bc0d4bb8 (diff) | |
download | ManaVerse-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.h | 3 |
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; |