summaryrefslogtreecommitdiff
path: root/src/plugins/qtsupport
diff options
context:
space:
mode:
authorDaniel Teske <daniel.teske@nokia.com>2011-11-10 12:30:37 +0100
committerDaniel Molkentin <daniel.molkentin@nokia.com>2011-11-10 15:20:07 +0100
commite6a2f702449d5234e39ead35cfa95a4f91ac0dc6 (patch)
tree9dc466dfba44300bc10086ae361cc72415193f08 /src/plugins/qtsupport
parent7a1b22c8905e7b60eea091a81dd6d546a2f6efd1 (diff)
downloadqt-creator-e6a2f702449d5234e39ead35cfa95a4f91ac0dc6.tar.gz
Slightly simplfy code in welcomescreen/exampleslistmodel
Change-Id: I49301390b6d16e8c6812e277dda7531c28b59259 Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
Diffstat (limited to 'src/plugins/qtsupport')
-rw-r--r--src/plugins/qtsupport/exampleslistmodel.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/qtsupport/exampleslistmodel.cpp b/src/plugins/qtsupport/exampleslistmodel.cpp
index 4a19d0d06d..eb6ece6351 100644
--- a/src/plugins/qtsupport/exampleslistmodel.cpp
+++ b/src/plugins/qtsupport/exampleslistmodel.cpp
@@ -219,10 +219,8 @@ void ExamplesListModel::readNewsItems(const QString &examplesPath, const QString
if (offsetPath.startsWith(Core::ICore::instance()->resourcePath())) {
// Try to get dir from first Qt Version, based on the Qt source directory
// at first, since examplesPath / demosPath points at the build directory
- QString sourceBasedExamplesPath = sourcePath + QLatin1String("/examples");
- QString sourceBasedDemosPath = sourcePath + QLatin1String("/demos");
- examplesDir = sourceBasedExamplesPath;
- demosDir = sourceBasedDemosPath;
+ examplesDir = sourcePath + QLatin1String("/examples");
+ demosDir = sourcePath + QLatin1String("/demos");
// SDK case, folders might be called sth else (e.g. 'Examples' with uppercase E)
// but examplesPath / demosPath is correct
if (!examplesDir.exists() || !demosDir.exists()) {