File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -2755,7 +2755,15 @@ void QgisApp::updateRecentProjectPaths()
2755
2755
2756
2756
Q_FOREACH ( const QgsWelcomePageItemsModel::RecentProjectData& recentProject, mRecentProjects )
2757
2757
{
2758
- QAction* action = mRecentProjectsMenu ->addAction ( QString ( " %1 (%2)" ).arg ( recentProject.title ).arg ( recentProject.path ) );
2758
+ QAction* action;
2759
+ if ( recentProject.title != recentProject.path )
2760
+ {
2761
+ action = mRecentProjectsMenu ->addAction ( QString ( " %1 (%2)" ).arg ( recentProject.title ).arg ( recentProject.path ) );
2762
+ }
2763
+ else
2764
+ {
2765
+ action = mRecentProjectsMenu ->addAction ( QString ( " %1" ).arg ( recentProject.path ) );
2766
+ }
2759
2767
action->setEnabled ( QFile::exists (( recentProject.path ) ) );
2760
2768
action->setData ( recentProject.path );
2761
2769
}
You can’t perform that action at this time.
0 commit comments