Fixed Hostname dialog box opening unnecessarily (#6468)
#6392 Added check for autoconfig mode
This commit is contained in:
parent
b3cb57243a
commit
2713b95af7
|
@ -763,14 +763,27 @@ bool MainWindow::clientArgs(QStringList& args, QString& app)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (m_pLineEditHostname->text().isEmpty()) {
|
if (m_pLineEditHostname->text().isEmpty())
|
||||||
show();
|
{
|
||||||
QMessageBox::warning(
|
#ifndef SYNERGY_ENTERPRISE
|
||||||
this, tr("Hostname is empty"),
|
//check if autoconfig mode is enabled
|
||||||
tr("Please fill in a hostname for the synergy client to connect to."));
|
if (!appConfig().autoConfig())
|
||||||
return false;
|
{
|
||||||
}
|
#endif
|
||||||
|
show();
|
||||||
|
QMessageBox::warning(
|
||||||
|
this, tr("Hostname is empty"),
|
||||||
|
tr("Please fill in a hostname for the synergy client to connect to."));
|
||||||
|
return false;
|
||||||
|
|
||||||
|
#ifndef SYNERGY_ENTERPRISE
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
args << m_pLineEditHostname->text() + ":" + QString::number(appConfig().port());
|
args << m_pLineEditHostname->text() + ":" + QString::number(appConfig().port());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue