Fix Auto config missing hostname prompt #704

I think this might fix the prompt for a missing hostname when auto config is checked
This commit is contained in:
Jonathan Martens 2020-05-29 10:11:55 +02:00 committed by GitHub
parent dbd10820c3
commit 21eadc9661
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -595,9 +595,7 @@ bool MainWindow::clientArgs(QStringList& args, QString& app)
args << "[" + serverIp + "]:" + QString::number(appConfig().port()); args << "[" + serverIp + "]:" + QString::number(appConfig().port());
return true; return true;
} }
} } else if (m_pLineEditHostname->text().isEmpty()) {
if (m_pLineEditHostname->text().isEmpty()) {
show(); show();
if (!m_SuppressEmptyServerWarning) { if (!m_SuppressEmptyServerWarning) {
QMessageBox::warning(this, tr("Hostname is empty"), QMessageBox::warning(this, tr("Hostname is empty"),