Frontend: Only reload icons in chat when the chat room is open

This commit is contained in:
James Rowe 2019-01-17 12:25:17 -07:00
parent f110cd95a6
commit 3523831195

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) {