summaryrefslogtreecommitdiff
path: root/src/gui/widgets/avatarlistbox.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-08 18:01:40 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-08 18:01:40 +0300
commit6303e605ef23003aabace85cde3f04574f1fb05c (patch)
tree6c9477f7314e4d371081473d7b96503b47573dea /src/gui/widgets/avatarlistbox.cpp
parent568cd6279a753b1f04afb08a9193ab0873bf8e53 (diff)
downloadplus-6303e605ef23003aabace85cde3f04574f1fb05c.tar.gz
plus-6303e605ef23003aabace85cde3f04574f1fb05c.tar.bz2
plus-6303e605ef23003aabace85cde3f04574f1fb05c.tar.xz
plus-6303e605ef23003aabace85cde3f04574f1fb05c.zip
In whisper constructor allow separatly set nick and caption.
Diffstat (limited to 'src/gui/widgets/avatarlistbox.cpp')
-rw-r--r--src/gui/widgets/avatarlistbox.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp
index a351c7199..53e4684d4 100644
--- a/src/gui/widgets/avatarlistbox.cpp
+++ b/src/gui/widgets/avatarlistbox.cpp
@@ -470,8 +470,9 @@ void AvatarListBox::mousePressed(MouseEvent &event)
{
if (type == MapItemType::EMPTY && chatWindow)
{
+ const std::string &name = model->getAvatarAt(selected)->getName();
const WhisperTab *const tab = chatWindow->addWhisperTab(
- model->getAvatarAt(selected)->getName(), true);
+ name, name, true);
if (tab)
chatWindow->saveState();
}