Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jul 16, 2016
1 parent 31d9a62 commit 66b5591
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Expand Up @@ -43,8 +43,6 @@ class ManualConnectionDialog : public de::InputDialog, public de::IPersistent
*/
void enableJoinWhenSelected(bool joinWhenSelected);

de::Action *makeAction(de::ui::Item const &item);

// Implements IPersistent.
void operator >> (de::PersistentState &toState) const;
void operator << (de::PersistentState const &fromState);
Expand All @@ -56,7 +54,7 @@ public slots:
void queryOrConnect();
void contentChanged();
void validate();
void serverSelected(de::ui::Item const *);
//void serverSelected(de::ui::Item const *);

protected:
void finish(int result);
Expand Down
Expand Up @@ -143,12 +143,6 @@ void ManualConnectionDialog::enableJoinWhenSelected(bool joinWhenSelected)
d->autoJoin = joinWhenSelected;
}

Action *ManualConnectionDialog::makeAction(ui::Item const &/*item*/)
{
//return d->servers->makeAction(item);
return nullptr;
}

void ManualConnectionDialog::operator >> (PersistentState &toState) const
{
toState.objectNamespace().set(name() + ".address", d->usedAddress);
Expand Down Expand Up @@ -219,14 +213,15 @@ void ManualConnectionDialog::validate()
d->connectButton().enable(valid);
}

/*
void ManualConnectionDialog::serverSelected(ui::Item const *item)
{
if (d->autoJoin)
{
setAcceptanceAction(makeAction(*item));
}
accept();
}
}*/

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

0 comments on commit 66b5591

Please sign in to comment.