mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-02 11:33:55 -07:00
Merge pull request #905 from poixen/socket_failure_dlg
Reopen connection if socket failure
This commit is contained in:
commit
b8401592d4
1 changed files with 1 additions and 0 deletions
|
|
@ -274,6 +274,7 @@ void MainWindow::loginError(Response::ResponseCode r, QString reasonStr, quint32
|
||||||
void MainWindow::socketError(const QString &errorStr)
|
void MainWindow::socketError(const QString &errorStr)
|
||||||
{
|
{
|
||||||
QMessageBox::critical(this, tr("Error"), tr("Socket error: %1").arg(errorStr));
|
QMessageBox::critical(this, tr("Error"), tr("Socket error: %1").arg(errorStr));
|
||||||
|
actConnect();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::protocolVersionMismatch(int localVersion, int remoteVersion)
|
void MainWindow::protocolVersionMismatch(int localVersion, int remoteVersion)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue