File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -2764,15 +2764,7 @@ void QgisApp::updateRecentProjectPaths()
2764
2764
2765
2765
Q_FOREACH ( const QgsWelcomePageItemsModel::RecentProjectData& recentProject, mRecentProjects )
2766
2766
{
2767
- QAction* action;
2768
- if ( recentProject.title != recentProject.path )
2769
- {
2770
- action = mRecentProjectsMenu ->addAction ( QString ( " %1 (%2)" ).arg ( recentProject.title ).arg ( recentProject.path ) );
2771
- }
2772
- else
2773
- {
2774
- action = mRecentProjectsMenu ->addAction ( QString ( " %1" ).arg ( recentProject.path ) );
2775
- }
2767
+ QAction* action = mRecentProjectsMenu ->addAction ( QString ( " %1 (%2)" ).arg ( recentProject.title != recentProject.path ? recentProject.title : QFileInfo ( recentProject.path ).baseName () ).arg ( recentProject.path ) );
2776
2768
action->setEnabled ( QFile::exists (( recentProject.path ) ) );
2777
2769
action->setData ( recentProject.path );
2778
2770
}
You can’t perform that action at this time.
0 commit comments