summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
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 ++;
}