summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-06-14 20:44:05 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-06-14 20:45:09 (GMT)
commitd03352d432dc1bbafe458a747bde0d80c01e9c83 (patch)
tree10c99d8b27af2850d709c4a3204a1f0c45414647 /Swift
parent8ea37bc5fb8ba4357fc1e3464e96583fe651da93 (diff)
downloadswift-contrib-d03352d432dc1bbafe458a747bde0d80c01e9c83.zip
swift-contrib-d03352d432dc1bbafe458a747bde0d80c01e9c83.tar.bz2
Don't crash on tab presses in non-MUC chats.
Resolves: #463
Diffstat (limited to 'Swift')
-rw-r--r--Swift/QtUI/QtChatWindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Swift/QtUI/QtChatWindow.cpp b/Swift/QtUI/QtChatWindow.cpp
index b1f6c5a..0c297b2 100644
--- a/Swift/QtUI/QtChatWindow.cpp
+++ b/Swift/QtUI/QtChatWindow.cpp
@@ -31,6 +31,7 @@ namespace Swift {
QtChatWindow::QtChatWindow(const QString &contact, UIEventStream* eventStream) : QtTabbable(), contact_(contact), previousMessageWasSelf_(false), previousMessageWasSystem_(false), eventStream_(eventStream) {
unreadCount_ = 0;
inputEnabled_ = true;
+ completer_ = NULL;
updateTitleWithUnreadCount();
QBoxLayout *layout = new QBoxLayout(QBoxLayout::TopToBottom, this);