Skip to content
Permalink
Browse files

[recent project] make use of baseName() in the file menu too

  • Loading branch information
nirvn authored and m-kuhn committed Sep 10, 2015
1 parent 0d5472e commit a44bfb21741d49392cbe9153992f4e0b9c75f31c
Showing with 1 addition and 9 deletions.
  1. +1 −9 src/app/qgisapp.cpp
@@ -2764,15 +2764,7 @@ void QgisApp::updateRecentProjectPaths()

Q_FOREACH ( const QgsWelcomePageItemsModel::RecentProjectData& recentProject, mRecentProjects )
{
QAction* action;
if ( recentProject.title != recentProject.path )
{
action = mRecentProjectsMenu->addAction( QString( "%1 (%2)" ).arg( recentProject.title ).arg( recentProject.path ) );
}
else
{
action = mRecentProjectsMenu->addAction( QString( "%1" ).arg( recentProject.path ) );
}
QAction* action = mRecentProjectsMenu->addAction( QString( "%1 (%2)" ).arg( recentProject.title != recentProject.path ? recentProject.title : QFileInfo( recentProject.path ).baseName() ).arg( recentProject.path ) );
action->setEnabled( QFile::exists(( recentProject.path ) ) );
action->setData( recentProject.path );
}

0 comments on commit a44bfb2

Please sign in to comment.
You can’t perform that action at this time.