diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-11-01 00:09:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-11-01 00:09:32 +0300 |
commit | 029818ba44703c5151f8d916284e307b05d08fa9 (patch) | |
tree | 785726402146454e69acf1b18ad12f6890e29932 /src/gui/widgets | |
parent | 1936a2bcfad1b37385aec3d84efabf2570a8c9e8 (diff) | |
download | plus-029818ba44703c5151f8d916284e307b05d08fa9.tar.gz plus-029818ba44703c5151f8d916284e307b05d08fa9.tar.bz2 plus-029818ba44703c5151f8d916284e307b05d08fa9.tar.xz plus-029818ba44703c5151f8d916284e307b05d08fa9.zip |
Add configure option --enable-checks for check some calls (disabled by default)
Also add configuration listeners removing in objects.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/avatarlistbox.cpp | 1 | ||||
-rw-r--r-- | src/gui/widgets/tabs/guildchattab.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp index d4eefe69c..664263518 100644 --- a/src/gui/widgets/avatarlistbox.cpp +++ b/src/gui/widgets/avatarlistbox.cpp @@ -71,6 +71,7 @@ AvatarListBox::AvatarListBox(const Widget2 *const widget, AvatarListBox::~AvatarListBox() { config.removeListeners(this); + CHECKLISTENERS instances--; diff --git a/src/gui/widgets/tabs/guildchattab.cpp b/src/gui/widgets/tabs/guildchattab.cpp index 4188a8843..69a4faaf3 100644 --- a/src/gui/widgets/tabs/guildchattab.cpp +++ b/src/gui/widgets/tabs/guildchattab.cpp @@ -49,6 +49,7 @@ GuildChatTab::GuildChatTab(const Widget2 *const widget) : GuildChatTab::~GuildChatTab() { config.removeListeners(this); + CHECKLISTENERS } bool GuildChatTab::handleCommand(const std::string &type, |