From 1e2a88e975019929c4c7e3154537865cc09550a6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 23 Feb 2020 09:30:51 +0300 Subject: Fix some code style issues --- src/gui/windows/chatwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/windows/chatwindow.cpp') 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); -- cgit v1.2.3-60-g2f50