Merge pull request #7202 from Techjar/better-netplay-errors

Improve NetPlay connection error handling
This commit is contained in:
spycrab authored and GitHub committed 2018-07-06 12:27:03 +02:00
commit 28ca6fec9a
6 files changed
+24 -12

No files matched your search

@@ -578,6 +578,14 @@ void NetPlayDialog::OnConnectionLost()
DisplayMessage(tr("Lost connection to NetPlay server..."), "red");
}
void NetPlayDialog::OnConnectionError(const std::string& message)
{
QueueOnObject(this, [this, message] {
QMessageBox::critical(this, tr("Error"),
tr("Failed to connect to server: %1").arg(tr(message.c_str())));
});
}
void NetPlayDialog::OnTraversalError(TraversalClient::FailureReason error)
{
QueueOnObject(this, [this, error] {