Merge pull request #6369 from slarosa/fix_18118_crash

[welcomepage] fixes #18118 remove last item causes a crash
This commit is contained in:
Nyall Dawson 2018-02-20 09:52:41 +11:00 committed by GitHub
commit da7ccf7d1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -230,7 +230,9 @@ void QgsWelcomePageItemsModel::unpinProject( const QModelIndex &index )
void QgsWelcomePageItemsModel::removeProject( const QModelIndex &index )
{
beginRemoveRows( index, index.row(), index.row() );
mRecentProjects.removeAt( index.row() );
endRemoveRows();
}
void QgsWelcomePageItemsModel::recheckProject( const QModelIndex &index )