Skip to content
Permalink
Browse files

Merge pull request #6667 from slarosa/fix_18530

Fixes #18530: Removing project item from Welcome screen crashes QGIS
  • Loading branch information
slarosa committed Mar 24, 2018
2 parents 5d34584 + af6ad23 commit 2220a6eadd719ebbd3aa5a7662a9b2322ef9b8c1
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/app/qgswelcomepageitemsmodel.cpp
@@ -201,6 +201,9 @@ QVariant QgsWelcomePageItemsModel::data( const QModelIndex &index, int role ) co

Qt::ItemFlags QgsWelcomePageItemsModel::flags( const QModelIndex &index ) const
{
if ( !index.isValid() || !rowCount( index.parent() ) )
return Qt::NoItemFlags;

Qt::ItemFlags flags = QAbstractListModel::flags( index );

const RecentProjectData &projectData = mRecentProjects.at( index.row() );

0 comments on commit 2220a6e

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