Skip to content

Commit 4b5fc40

Browse files
committed
[welcomepage] fixes #18118 remove last item causes a crash
1 parent a8a449f commit 4b5fc40

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)