summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-27 00:38:43 +0200
committerAndrei Karas <akaras@inbox.ru>2011-03-27 00:38:43 +0200
commit855c565e2242fa2504fb06f4579abc609de452f5 (patch)
treea07f2f2e99f56f80fbec31090dfea6fc06f57060 /src/gui/chat.cpp
parentb26e72ed5e62e9079319e14ed82734f0659db3c4 (diff)
downloadplus-855c565e2242fa2504fb06f4579abc609de452f5.tar.gz
plus-855c565e2242fa2504fb06f4579abc609de452f5.tar.bz2
plus-855c565e2242fa2504fb06f4579abc609de452f5.tar.xz
plus-855c565e2242fa2504fb06f4579abc609de452f5.zip
Add no away to whisper chat context menu.
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r--src/gui/chat.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index d3ebb3955..88dbd1b0a 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -1353,6 +1353,7 @@ void ChatWindow::loadState()
{
tab->setAllowHighlight(flags & 1);
tab->setRemoveNames((flags & 2) / 2);
+ tab->setNoAway((flags & 4) / 4);
}
serverConfig.deleteKey("chatWhisper" + toString(num));
serverConfig.deleteKey("chatWhisperFlags" + toString(num));
@@ -1386,7 +1387,8 @@ void ChatWindow::saveState()
serverConfig.setValue("chatWhisperFlags" + toString(num),
static_cast<int>(tab->getAllowHighlight())
- + (2 * static_cast<int>(tab->getRemoveNames())));
+ + (2 * static_cast<int>(tab->getRemoveNames()))
+ + (4 * static_cast<int>(tab->getNoAway())));
num ++;
}