mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Merge pull request #6369 from slarosa/fix_18118_crash
[welcomepage] fixes #18118 remove last item causes a crash
This commit is contained in:
commit
da7ccf7d1f
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user