mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Merge pull request #6667 from slarosa/fix_18530
Fixes #18530: Removing project item from Welcome screen crashes QGIS
This commit is contained in:
commit
2220a6eadd
@ -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() );
|
||||
|
Loading…
x
Reference in New Issue
Block a user