diff options
author | Thomas Hartmann <Thomas.Hartmann@digia.com> | 2013-06-18 10:05:36 +0200 |
---|---|---|
committer | Thomas Hartmann <Thomas.Hartmann@digia.com> | 2013-06-18 13:11:40 +0200 |
commit | 88e727922ecd12a88774e9b4f3cbc2fb2a38baab (patch) | |
tree | 9957d41da7692906a5698bafd81d35e868ab80b7 /src/plugins/qmlprojectmanager | |
parent | 501089d63251ebde32288e4a56aa321eb9f4fd50 (diff) | |
download | qt-creator-88e727922ecd12a88774e9b4f3cbc2fb2a38baab.tar.gz |
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: Robert Loehning <robert.loehning@digia.com>
Diffstat (limited to 'src/plugins/qmlprojectmanager')
-rw-r--r-- | src/plugins/qmlprojectmanager/qmlapplicationwizard.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/qmlprojectmanager/qmlapplicationwizard.cpp b/src/plugins/qmlprojectmanager/qmlapplicationwizard.cpp index be9ad6bb6f..ae4dbcf4c6 100644 --- a/src/plugins/qmlprojectmanager/qmlapplicationwizard.cpp +++ b/src/plugins/qmlprojectmanager/qmlapplicationwizard.cpp @@ -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( |