From 75b77fea33eb728f0ea0653ed9658fe95a7fbdae Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Fri, 17 Nov 2017 18:30:41 +0100 Subject: [PATCH] fix getting a warning if no installsettingspath is set Change-Id: I6f5528026a6fd7c1f3df683c7d0816a82e592efc Reviewed-by: Thomas Hartmann --- src/app/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/main.cpp b/src/app/main.cpp index b2ccbc4f3b4..3f99950054a 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -228,7 +228,7 @@ static inline QStringList getPluginPaths() static void setupInstallSettings(QString &installSettingspath) { - if (!QFileInfo(installSettingspath).isDir()) { + if (!installSettingspath.isEmpty() && !QFileInfo(installSettingspath).isDir()) { displayHelpText(QString("-installsettingspath needs to be the path where a %1/%2.ini exist.").arg( QLatin1String(Core::Constants::IDE_SETTINGSVARIANT_STR), QLatin1String(Core::Constants::IDE_CASED_ID))); installSettingspath.clear();