Skip to content

Commit

Permalink
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
1 parent 5d34584 commit af6ad23
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 af6ad23

Please sign in to comment.