summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-01-06 01:32:18 +0300
committerAndrei Karas <akaras@inbox.ru>2012-01-06 01:32:18 +0300
commit0150901f5d6a7e0a3c7294560fbd8ac7925f419e (patch)
treed47cbe4a72701f47f917a016d84dee831d702efe /src
parent2df2bc1dcd25894101636c3b57061bcf60828273 (diff)
downloadmv-0150901f5d6a7e0a3c7294560fbd8ac7925f419e.tar.gz
mv-0150901f5d6a7e0a3c7294560fbd8ac7925f419e.tar.bz2
mv-0150901f5d6a7e0a3c7294560fbd8ac7925f419e.tar.xz
mv-0150901f5d6a7e0a3c7294560fbd8ac7925f419e.zip
Fix crash in chat autocomplete if no current chat tab.
Diffstat (limited to 'src')
-rw-r--r--src/gui/chatwindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp
index 5c1286923..0c094f7a8 100644
--- a/src/gui/chatwindow.cpp
+++ b/src/gui/chatwindow.cpp
@@ -1180,7 +1180,8 @@ void ChatWindow::autoComplete()
ChatTab *cTab = static_cast<ChatTab*>(mChatTabs->getSelectedTab());
std::vector<std::string> nameList;
- cTab->getAutoCompleteList(nameList);
+ if (cTab)
+ cTab->getAutoCompleteList(nameList);
newName = autoComplete(nameList, name);
if (newName == "" && actorSpriteManager)