summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/channeltab.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/channeltab.cpp b/src/gui/widgets/channeltab.cpp
index 0fce98bb..aac1cdb6 100644
--- a/src/gui/widgets/channeltab.cpp
+++ b/src/gui/widgets/channeltab.cpp
@@ -37,6 +37,9 @@ ChannelTab::ChannelTab(Channel *channel) :
ChannelTab::~ChannelTab()
{
+ // Clear tab so the channel won't try to (if the ChatWindow is cleared
+ // before the channels are, we'll run into issues without this)
+ mChannel->setTab(0);
}
void ChannelTab::handleInput(const std::string &msg)