From 42531b3cf82aace768f2960f0ea6d07815274026 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 24 Aug 2017 20:09:31 +0300 Subject: Fix duplicating assert message created after connected to server for some seconds. --- src/gui/windows/chatwindow.cpp | 6 ++++++ src/gui/windows/chatwindow.h | 2 ++ 2 files changed, 8 insertions(+) (limited to 'src/gui/windows') diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp index a3032de54..e29212063 100644 --- a/src/gui/windows/chatwindow.cpp +++ b/src/gui/windows/chatwindow.cpp @@ -2166,3 +2166,9 @@ void ChatWindow::joinRoom(const bool isJoin) tab->setCaption(name); } } + +void ChatWindow::scheduleDelete() +{ + DebugMessageListener::removeListener(this); + Window::scheduleDelete(); +} diff --git a/src/gui/windows/chatwindow.h b/src/gui/windows/chatwindow.h index 9664bc0ae..080e36738 100644 --- a/src/gui/windows/chatwindow.h +++ b/src/gui/windows/chatwindow.h @@ -308,6 +308,8 @@ class ChatWindow final : public Window, void debugMessage(const std::string &msg) override final; + void scheduleDelete() override final; + #ifdef USE_PROFILER void logicChildren(); #endif // USE_PROFILER -- cgit v1.2.3-70-g09d2