diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-01-09 13:12:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-01-09 13:12:18 +0300 |
commit | b3ad7da111d1a21f14de39d84be97104a9666017 (patch) | |
tree | 72338ee95de5337acc4e00c6ff6ab8b2fc458d37 /src/gui/widgets/container.cpp | |
parent | 2e47d5e2897ffd8bcf85b499fe68a20f9f694ebb (diff) | |
download | mv-b3ad7da111d1a21f14de39d84be97104a9666017.tar.gz mv-b3ad7da111d1a21f14de39d84be97104a9666017.tar.bz2 mv-b3ad7da111d1a21f14de39d84be97104a9666017.tar.xz mv-b3ad7da111d1a21f14de39d84be97104a9666017.zip |
add mods tab in settings.
Diffstat (limited to 'src/gui/widgets/container.cpp')
-rw-r--r-- | src/gui/widgets/container.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/widgets/container.cpp b/src/gui/widgets/container.cpp index 4b0fc60f7..e37bd5103 100644 --- a/src/gui/widgets/container.cpp +++ b/src/gui/widgets/container.cpp @@ -35,7 +35,11 @@ Container::~Container() { if (gui) gui->removeDragged(this); + removeControls(); +} +void Container::removeControls() +{ while (!mWidgets.empty()) delete mWidgets.front(); } |