mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 00:42:14 -07:00
disable autoconnect
This commit is contained in:
parent
b1592ec905
commit
b6c27ceb6f
1 changed files with 2 additions and 1 deletions
|
|
@ -1030,7 +1030,8 @@ void MainWindow::changeEvent(QEvent *event)
|
||||||
if (!connectTo.isEmpty()) {
|
if (!connectTo.isEmpty()) {
|
||||||
qDebug() << "Command line connect to " << connectTo;
|
qDebug() << "Command line connect to " << connectTo;
|
||||||
client->connectToServer(connectTo.host(), connectTo.port(), connectTo.userName(), connectTo.password());
|
client->connectToServer(connectTo.host(), connectTo.port(), connectTo.userName(), connectTo.password());
|
||||||
} else if (SettingsCache::instance().servers().getAutoConnect()) {
|
} else if (SettingsCache::instance().servers().getAutoConnect() &&
|
||||||
|
!SettingsCache::instance().debug().getLocalGameOnStartup()) {
|
||||||
qDebug() << "Attempting auto-connect...";
|
qDebug() << "Attempting auto-connect...";
|
||||||
DlgConnect dlg(this);
|
DlgConnect dlg(this);
|
||||||
client->connectToServer(dlg.getHost(), static_cast<unsigned int>(dlg.getPort()), dlg.getPlayerName(),
|
client->connectToServer(dlg.getHost(), static_cast<unsigned int>(dlg.getPort()), dlg.getPlayerName(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue