diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-03-27 00:38:43 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-03-27 00:38:43 +0200 |
commit | 855c565e2242fa2504fb06f4579abc609de452f5 (patch) | |
tree | a07f2f2e99f56f80fbec31090dfea6fc06f57060 /src/gui/chat.cpp | |
parent | b26e72ed5e62e9079319e14ed82734f0659db3c4 (diff) | |
download | manaplus-855c565e2242fa2504fb06f4579abc609de452f5.tar.gz manaplus-855c565e2242fa2504fb06f4579abc609de452f5.tar.bz2 manaplus-855c565e2242fa2504fb06f4579abc609de452f5.tar.xz manaplus-855c565e2242fa2504fb06f4579abc609de452f5.zip |
Add no away to whisper chat context menu.
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r-- | src/gui/chat.cpp | 4 |
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 ++; } |