From 65b38a7537e862b7737b10e403d4e0cd624aa7da Mon Sep 17 00:00:00 2001 From: James Rowe Date: Wed, 25 Apr 2018 10:31:51 -0600 Subject: [PATCH] fixup: Address review --- src/citra_qt/multiplayer/client_room.cpp | 2 +- src/citra_qt/multiplayer/state.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/citra_qt/multiplayer/client_room.cpp b/src/citra_qt/multiplayer/client_room.cpp index 88bc132ef8..79fa061ee2 100644 --- a/src/citra_qt/multiplayer/client_room.cpp +++ b/src/citra_qt/multiplayer/client_room.cpp @@ -59,7 +59,7 @@ void ClientRoomWindow::OnStateChange(const Network::RoomMember::State& state) { void ClientRoomWindow::Disconnect() { auto parent = static_cast(parentWidget()); - if (!parent->OnCloseRoom()) { + if (parent->OnCloseRoom()) { ui->chat->AppendStatusMessage(tr("Disconnected")); close(); } diff --git a/src/citra_qt/multiplayer/state.h b/src/citra_qt/multiplayer/state.h index 3500ff5df9..a1e37ba2f3 100644 --- a/src/citra_qt/multiplayer/state.h +++ b/src/citra_qt/multiplayer/state.h @@ -14,9 +14,6 @@ class HostRoomWindow; class ClientRoomWindow; class DirectConnectWindow; class ClickableLabel; -namespace Core { -class AnnounceMultiplayerSession; -} class MultiplayerState : public QWidget { Q_OBJECT;