Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[welcomepage] fixes #18118 remove last item causes a crash
  • Loading branch information
slarosa committed Feb 17, 2018
1 parent a8a449f commit 4b5fc40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/qgswelcomepageitemsmodel.cpp
Expand Up @@ -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 )
Expand Down

0 comments on commit 4b5fc40

Please sign in to comment.