Skip to content
Permalink
Browse files

Fixes #18530: Removing project item from Welcome screen crashes QGIS

  • Loading branch information
slarosa committed Mar 24, 2018
1 parent 5d34584 commit af6ad23048e50308bb6b3ee7cc9bff130c20a210
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 af6ad23

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