Merge pull request #4576 from jroweboy/fixup-config

Frontend: Only reload icons in chat when the chat room is open
This commit is contained in:
James Rowe 2019-01-17 12:38:37 -07:00 committed by GitHub
commit a6c52d31ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -194,7 +194,8 @@ void MultiplayerState::UpdateThemedIcons() {
} else {
status_icon->setPixmap(QIcon::fromTheme("disconnected").pixmap(16));
}
client_room->UpdateIconDisplay();
if (client_room)
client_room->UpdateIconDisplay();
}
static void BringWidgetToFront(QWidget* widget) {