diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-02-26 00:01:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-02-26 00:01:56 +0300 |
commit | 803b6afd00b0e3574b40b866f21a0d3d01f6dc4d (patch) | |
tree | 8a55ef881f1eaac4d216b3f5d2c4605eb520070d /src/gui/popupmenu.cpp | |
parent | 8478d540748edccf36dc9bda5f0c3de0aa7bf763 (diff) | |
download | mv-803b6afd00b0e3574b40b866f21a0d3d01f6dc4d.tar.gz mv-803b6afd00b0e3574b40b866f21a0d3d01f6dc4d.tar.bz2 mv-803b6afd00b0e3574b40b866f21a0d3d01f6dc4d.tar.xz mv-803b6afd00b0e3574b40b866f21a0d3d01f6dc4d.zip |
Improve string usage in other files.
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r-- | src/gui/popupmenu.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp index e88322d97..8bc53836f 100644 --- a/src/gui/popupmenu.cpp +++ b/src/gui/popupmenu.cpp @@ -130,7 +130,6 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being) mY = y; const std::string &name = mNick; - mBrowserBox->addRow(name + being->getGenderSignWithSpace()); switch (being->getType()) @@ -924,9 +923,14 @@ void PopupMenu::handleLink(const std::string &link, if (chatWindow) { if (config.getBoolValue("whispertab")) + { chatWindow->localChatInput("/q " + mNick); + } else - chatWindow->addInputText("/w \"" + mNick + "\" "); + { + chatWindow->addInputText(std::string("/w \"").append( + mNick).append("\" ")); + } } } else if (link == "move" && !mNick.empty()) |