Skip to content

Commit

Permalink
Merge pull request #6667 from slarosa/fix_18530
Browse files Browse the repository at this point in the history
Fixes #18530: Removing project item from Welcome screen crashes QGIS
  • Loading branch information
slarosa committed Mar 24, 2018
2 parents 5d34584 + af6ad23 commit 2220a6e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/qgswelcomepageitemsmodel.cpp
Expand Up @@ -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() );
Expand Down

0 comments on commit 2220a6e

Please sign in to comment.