mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Fix autoconnect
This commit is contained in:
parent
2a83f6dd4b
commit
50aa6e3a4d
3 changed files with 1 additions and 12 deletions
|
|
@ -685,7 +685,7 @@ void MainWindow::changeEvent(QEvent *event)
|
|||
else if(event->type() == QEvent::ActivationChange) {
|
||||
if(isActiveWindow() && !bHasActivated){
|
||||
bHasActivated = true;
|
||||
if(settingsCache->getAutoConnect()) {
|
||||
if(settingsCache->servers().getAutoConnect()) {
|
||||
qDebug() << "Attempting auto-connect...";
|
||||
DlgConnect dlg(this);
|
||||
client->connectToServer(dlg.getHost(), dlg.getPort(), dlg.getPlayerName(), dlg.getPassword());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue