From 125ac37724228b323509abfef6a737427837219b Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Fri, 11 Feb 2022 10:23:59 +0100 Subject: [PATCH] StudioWelcome: Only show project folder path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The project file name is usually the same as the folder and does not add extra information. Task-number: QDS-6169 Change-Id: I2673a30130cd73daa7bb6811b00e1cb05ee2444c Reviewed-by: Brook Cronin Reviewed-by: Reviewed-by: Henning Gründl Reviewed-by: Qt CI Bot --- src/plugins/studiowelcome/studiowelcomeplugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/studiowelcome/studiowelcomeplugin.cpp b/src/plugins/studiowelcome/studiowelcomeplugin.cpp index 6e84db4f9b3..0a387894bef 100644 --- a/src/plugins/studiowelcome/studiowelcomeplugin.cpp +++ b/src/plugins/studiowelcome/studiowelcomeplugin.cpp @@ -465,7 +465,7 @@ QVariant ProjectModel::data(const QModelIndex &index, int role) const case FilePathRole: return data.first; case PrettyFilePathRole: - return Utils::withTildeHomePath(data.first); + return Utils::withTildeHomePath(QFileInfo(data.first).dir().absolutePath()); case PreviewUrl: return QVariant(QStringLiteral("image://project_preview/") + appQmlFile(data.first)); case TagData: