forked from qt-creator/qt-creator
fix getting a warning if no installsettingspath is set
Change-Id: I6f5528026a6fd7c1f3df683c7d0816a82e592efc Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user