refresh the network dialog if it is already up

This commit is contained in:
Stephen Birarda 2015-05-28 17:07:20 -07:00
parent cb7b23f346
commit 7f86ca3f10

View file

@ -178,11 +178,14 @@ void DialogsManager::showIRCLink() {
}
void DialogsManager::showDomainConnectionDialog() {
if (!_domainConnectionDialog) {
// if the dialog already exists we delete it so the connection data is refreshed
maybeCreateDialog(_domainConnectionDialog);
_domainConnectionDialog->show();
_domainConnectionDialog->raise();
// if the dialog already exists we delete it so the connection data is refreshed
if (_domainConnectionDialog) {
_domainConnectionDialog->close();
_domainConnectionDialog = NULL;
}
maybeCreateDialog(_domainConnectionDialog);
_domainConnectionDialog->show();
_domainConnectionDialog->raise();
}