Skip to content

Commit da7ccf7

Browse files
authored
Merge pull request #6369 from slarosa/fix_18118_crash
[welcomepage] fixes #18118 remove last item causes a crash
2 parents 39cb0fb + 4b5fc40 commit da7ccf7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/app/qgswelcomepageitemsmodel.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,9 @@ void QgsWelcomePageItemsModel::unpinProject( const QModelIndex &index )
230230

231231
void QgsWelcomePageItemsModel::removeProject( const QModelIndex &index )
232232
{
233+
beginRemoveRows( index, index.row(), index.row() );
233234
mRecentProjects.removeAt( index.row() );
235+
endRemoveRows();
234236
}
235237

236238
void QgsWelcomePageItemsModel::recheckProject( const QModelIndex &index )

0 commit comments

Comments
 (0)