diff --git a/src/gui/src/MainWindow.cpp b/src/gui/src/MainWindow.cpp index 7fea19b4..01133bf6 100644 --- a/src/gui/src/MainWindow.cpp +++ b/src/gui/src/MainWindow.cpp @@ -595,9 +595,7 @@ bool MainWindow::clientArgs(QStringList& args, QString& app) args << "[" + serverIp + "]:" + QString::number(appConfig().port()); return true; } - } - - if (m_pLineEditHostname->text().isEmpty()) { + } else if (m_pLineEditHostname->text().isEmpty()) { show(); if (!m_SuppressEmptyServerWarning) { QMessageBox::warning(this, tr("Hostname is empty"),