Skip to content
Permalink
Browse files

truncate only last extension in oper recent project menu

cherry-picked from 7c9cc07
  • Loading branch information
slarosa committed Nov 16, 2017
1 parent 2c034d6 commit 87dbb8842f4aecb679bdb90d0a76acbf2d495d3e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgisapp.cpp
@@ -3254,7 +3254,7 @@ void QgisApp::updateRecentProjectPaths()

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

0 comments on commit 87dbb88

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