summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/tabs/chat/chattab.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/widgets/tabs/chat/chattab.cpp b/src/gui/widgets/tabs/chat/chattab.cpp
index 358fd8c44..ae75f9981 100644
--- a/src/gui/widgets/tabs/chat/chattab.cpp
+++ b/src/gui/widgets/tabs/chat/chattab.cpp
@@ -429,8 +429,11 @@ void ChatTab::clearText()
void ChatTab::handleInput(const std::string &msg)
{
- chatHandler->talk(ChatWindow::doReplace(msg),
- mChannelName);
+ if (chatHandler)
+ {
+ chatHandler->talk(ChatWindow::doReplace(msg),
+ mChannelName);
+ }
}
void ChatTab::handleCommandStr(const std::string &msg)