From 53e0c157f1a25769630013f961d4bd73e9992fae Mon Sep 17 00:00:00 2001 From: Rosalie Wanders Date: Mon, 15 Sep 2025 18:44:24 +0200 Subject: [PATCH] RMG: only set dispatcherMoveThroughList when server is dispatcher --- .../Dialog/Netplay/NetplaySessionBrowserDialog.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Source/RMG/UserInterface/Dialog/Netplay/NetplaySessionBrowserDialog.cpp b/Source/RMG/UserInterface/Dialog/Netplay/NetplaySessionBrowserDialog.cpp index 573f8ccf..a1fa89a7 100644 --- a/Source/RMG/UserInterface/Dialog/Netplay/NetplaySessionBrowserDialog.cpp +++ b/Source/RMG/UserInterface/Dialog/Netplay/NetplaySessionBrowserDialog.cpp @@ -363,6 +363,8 @@ void NetplaySessionBrowserDialog::on_webSocket_textMessageReceived(QString messa QString type = json.value("type").toString(); + bool dispatcher = NetplayCommon::IsServerDispatcher(this->serverComboBox); + if (type == "reply_get_rooms") { if (json.value("accept").toInt() == 0) @@ -385,7 +387,7 @@ void NetplaySessionBrowserDialog::on_webSocket_textMessageReceived(QString messa } // we're done refreshing the sessions - if (!NetplayCommon::IsServerDispatcher(this->serverComboBox)) + if (!dispatcher) { this->sessionBrowserWidget->RefreshDone(); } @@ -410,7 +412,10 @@ void NetplaySessionBrowserDialog::on_webSocket_textMessageReceived(QString messa } } - this->dispatcherMoveThroughList = true; + if (dispatcher) + { + this->dispatcherMoveThroughList = true; + } } void NetplaySessionBrowserDialog::on_webSocket_pong(quint64 elapsedTime, const QByteArray&)