Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
truncate only last extension in oper recent project menu
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
src/app/qgisapp.cpp
|
@@ -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 ); |
|
|