mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-05 00:40:00 +00:00
Merge pull request #6769 from spycrab/qt_fix_netplay
Qt/NetPlay: Fix crashes on start
This commit is contained in:
commit
8212b6e9cf
@ -955,6 +955,7 @@ bool MainWindow::NetPlayJoin()
|
|||||||
{
|
{
|
||||||
QMessageBox::critical(nullptr, QObject::tr("Error"),
|
QMessageBox::critical(nullptr, QObject::tr("Error"),
|
||||||
QObject::tr("Failed to connect to server"));
|
QObject::tr("Failed to connect to server"));
|
||||||
|
NetPlayQuit();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1004,6 +1005,7 @@ bool MainWindow::NetPlayHost(const QString& game_id)
|
|||||||
QObject::tr(
|
QObject::tr(
|
||||||
"Failed to listen on port %1. Is another instance of the NetPlay server running?")
|
"Failed to listen on port %1. Is another instance of the NetPlay server running?")
|
||||||
.arg(host_port));
|
.arg(host_port));
|
||||||
|
NetPlayQuit();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user