From 21eadc96613593f46f2c5a45b93a19b6277fb196 Mon Sep 17 00:00:00 2001 From: Jonathan Martens Date: Fri, 29 May 2020 10:11:55 +0200 Subject: [PATCH] Fix Auto config missing hostname prompt #704 I think this might fix the prompt for a missing hostname when auto config is checked --- src/gui/src/MainWindow.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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"),