Skip to content

Commit

Permalink
truncate only last extension in welcome screen
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jan 21, 2017
1 parent 0544088 commit fe450c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgswelcomepageitemsmodel.cpp
Expand Up @@ -143,7 +143,7 @@ QVariant QgsWelcomePageItemsModel::data( const QModelIndex& index, int role ) co
{
case Qt::DisplayRole:
case TitleRole:
return mRecentProjects.at( index.row() ).title != mRecentProjects.at( index.row() ).path ? mRecentProjects.at( index.row() ).title : QFileInfo( mRecentProjects.at( index.row() ).path ).baseName();
return mRecentProjects.at( index.row() ).title != mRecentProjects.at( index.row() ).path ? mRecentProjects.at( index.row() ).title : QFileInfo( mRecentProjects.at( index.row() ).path ).completeBaseName();
case PathRole:
return mRecentProjects.at( index.row() ).path;
case CrsRole:
Expand Down

0 comments on commit fe450c5

Please sign in to comment.