Commit e6a2f702 authored by Daniel Teske's avatar Daniel Teske Committed by Daniel Molkentin
Browse files

Slightly simplfy code in welcomescreen/exampleslistmodel

Change-Id: I49301390b6d16e8c6812e277dda7531c28b59259
Reviewed-by: default avatarDaniel Molkentin <>
parent 7a1b22c8
......@@ -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()) {
Supports Markdown
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