Skip to content

Commit 7c9cc07

Browse files
committed
truncate only last extension in oper recent project menu
1 parent 898eb4a commit 7c9cc07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/qgisapp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3817,7 +3817,7 @@ void QgisApp::updateRecentProjectPaths()
38173817

38183818
Q_FOREACH ( const QgsWelcomePageItemsModel::RecentProjectData &recentProject, mRecentProjects )
38193819
{
3820-
QAction *action = mRecentProjectsMenu->addAction( QStringLiteral( "%1 (%2)" ).arg( recentProject.title != recentProject.path ? recentProject.title : QFileInfo( recentProject.path ).baseName(),
3820+
QAction *action = mRecentProjectsMenu->addAction( QStringLiteral( "%1 (%2)" ).arg( recentProject.title != recentProject.path ? recentProject.title : QFileInfo( recentProject.path ).completeBaseName(),
38213821
QDir::toNativeSeparators( recentProject.path ) ) );
38223822
//action->setEnabled( QFile::exists( ( recentProject.path ) ) );
38233823
action->setData( recentProject.path );

0 commit comments

Comments
 (0)