Skip to content

Commit

Permalink
UI|Client: Handling a failed direct query for servers
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Mar 3, 2014
1 parent 0ad59d1 commit 2a74482
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Expand Up @@ -43,6 +43,7 @@ public slots:
void queryOrConnect();
void contentChanged();
void validate();
void disconnected();

protected:
void finish(int result);
Expand Down
6 changes: 6 additions & 0 deletions doomsday/client/src/ui/dialogs/manualconnectiondialog.cpp
Expand Up @@ -132,6 +132,7 @@ ManualConnectionDialog::ManualConnectionDialog(String const &name)
connect(&editor(), SIGNAL(enterPressed(QString)), this, SLOT(queryOrConnect()));
connect(&editor(), SIGNAL(editorContentChanged()), this, SLOT(validate()));
connect(&editor(), SIGNAL(editorContentChanged()), this, SLOT(contentChanged()));
connect(&ClientApp::serverLink(), SIGNAL(disconnected()), this, SLOT(disconnected()));

updateLayout();
}
Expand Down Expand Up @@ -201,6 +202,11 @@ void ManualConnectionDialog::validate()
d->connectButton().enable(valid);
}

void ManualConnectionDialog::disconnected()
{
d->linkDiscoveryUpdate(ClientApp::serverLink());
}

void ManualConnectionDialog::finish(int result)
{
if(result)
Expand Down

0 comments on commit 2a74482

Please sign in to comment.