mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
truncate only last extension in oper recent project menu
This commit is contained in:
parent
898eb4abf4
commit
7c9cc07e85
@ -3817,7 +3817,7 @@ void QgisApp::updateRecentProjectPaths()
|
||||
|
||||
Q_FOREACH ( const QgsWelcomePageItemsModel::RecentProjectData &recentProject, mRecentProjects )
|
||||
{
|
||||
QAction *action = mRecentProjectsMenu->addAction( QStringLiteral( "%1 (%2)" ).arg( recentProject.title != recentProject.path ? recentProject.title : QFileInfo( recentProject.path ).baseName(),
|
||||
QAction *action = mRecentProjectsMenu->addAction( QStringLiteral( "%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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user