summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-24 14:12:07 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-24 14:12:07 +0300
commit2399c209dd3429ac2629e91d8cd2219e1e15c7db (patch)
treef0aff1da4e5f1abb86bb88e7b9cf1f9c7dcd627d /src/gui/widgets
parent64ec9b4c90fc36aaa96ae06a1307b1c44215ac5d (diff)
downloadplus-2399c209dd3429ac2629e91d8cd2219e1e15c7db.tar.gz
plus-2399c209dd3429ac2629e91d8cd2219e1e15c7db.tar.bz2
plus-2399c209dd3429ac2629e91d8cd2219e1e15c7db.tar.xz
plus-2399c209dd3429ac2629e91d8cd2219e1e15c7db.zip
Allow enter in chat "?" as text message.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/chattab.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/widgets/chattab.cpp b/src/gui/widgets/chattab.cpp
index fa61f0dcd..f120cfb06 100644
--- a/src/gui/widgets/chattab.cpp
+++ b/src/gui/widgets/chattab.cpp
@@ -387,7 +387,10 @@ void ChatTab::chatInput(const std::string &message)
handleCommand(std::string(msg, 1));
break;
case '?':
- handleHelp(std::string(msg, 1));
+ if (msg.size() > 1)
+ handleHelp(std::string(msg, 1));
+ else
+ handleInput(msg);
break;
default:
handleInput(msg);