From f9a1e6249976b8d4aecbe69f1eab8dd463e2ca85 Mon Sep 17 00:00:00 2001 From: Artem Sokolovskii Date: Tue, 8 Oct 2024 15:16:59 +0200 Subject: [PATCH] ProjectExplorer: Show project name instead with file paths Now Recent Project menu entry shows project names with file paths. Fixes: QTCREATORBUG-31753 Change-Id: I1109ffa70c034e38a348e7c07b7b19eb503c6c1e Reviewed-by: Eike Ziller Reviewed-by: Christian Kandeler Reviewed-by: hjk --- src/plugins/projectexplorer/projectexplorer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index 732c7d00974..6dc4424a8f0 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -3256,8 +3256,8 @@ void ProjectExplorerPluginPrivate::updateRecentProjectMenu() const QString displayPath = filePath.osType() == OsTypeWindows ? filePath.displayName() : filePath.withTildeHomePath(); - const QString actionText = - ActionManager::withNumberAccelerator(displayPath, acceleratorKey); + const QString actionText = ActionManager::withNumberAccelerator( + displayPath + " (" + item.displayName + ")", acceleratorKey); QAction *action = menu->addAction(actionText); connect(action, &QAction::triggered, this, [this, filePath] { openRecentProject(filePath);