Commit 88e72792 authored by Thomas Hartmann's avatar Thomas Hartmann

Wizards: getting rid of pointless empty line

An imagte with invalid path creates a poinless empty line.
Check first if image does exist.

Change-Id: Icaaafc26c81756a076683eff42ce6c9e72185f0b
Reviewed-by: default avatarRobert Loehning <robert.loehning@digia.com>
parent 501089d6
......@@ -79,7 +79,9 @@ void QmlApplicationWizard::createInstances(ExtensionSystem::IPlugin *plugin)
BaseFileWizardParameters parameters;
parameters.setDisplayName(templateInfo.displayName);
parameters.setDescription(templateInfo.description);
parameters.setDescriptionImage(templateInfo.templatePath + QLatin1String("/template.png"));
const QString imagePath = templateInfo.templatePath + QLatin1String("/template.png");
if (QFileInfo(imagePath).exists())
parameters.setDescriptionImage(imagePath);
parameters.setCategory(
QLatin1String(ProjectExplorer::Constants::QT_APPLICATION_WIZARD_CATEGORY));
parameters.setDisplayCategory(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment