diff options
author | Andrei Karas <akaras@inbox.ru> | 2020-02-23 09:30:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2020-02-23 09:30:51 +0300 |
commit | 1e2a88e975019929c4c7e3154537865cc09550a6 (patch) | |
tree | ae8bc68ad3a3f6b61a5e2d511d7fc17daa22bd0e /src/gui/windows/chatwindow.cpp | |
parent | 6941fd4eeb1dce20aba8c42fd030c2690c37b731 (diff) | |
download | manaplus-1e2a88e975019929c4c7e3154537865cc09550a6.tar.gz manaplus-1e2a88e975019929c4c7e3154537865cc09550a6.tar.bz2 manaplus-1e2a88e975019929c4c7e3154537865cc09550a6.tar.xz manaplus-1e2a88e975019929c4c7e3154537865cc09550a6.zip |
Fix some code style issues
Diffstat (limited to 'src/gui/windows/chatwindow.cpp')
-rw-r--r-- | src/gui/windows/chatwindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp index f96cf976d..ad7fc1573 100644 --- a/src/gui/windows/chatwindow.cpp +++ b/src/gui/windows/chatwindow.cpp @@ -1883,12 +1883,12 @@ void ChatWindow::loadState() if (nick.empty()) break; - const int flags = serverConfig.getValue( - "chatWhisperFlags" + toString(num), 1); - ChatTab *const tab = addChatTab(nick, false, false); if (tab != nullptr) { + const int flags = serverConfig.getValue( + "chatWhisperFlags" + toString(num), 1); + tab->setAllowHighlight((flags & 1) != 0); tab->setRemoveNames(((flags & 2) / 2) != 0); tab->setNoAway(((flags & 4) / 4) != 0); |