Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #6369 from slarosa/fix_18118_crash
[welcomepage] fixes #18118 remove last item causes a crash
  • Loading branch information
nyalldawson committed Feb 19, 2018
2 parents 39cb0fb + 4b5fc40 commit da7ccf7
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 da7ccf7

Please sign in to comment.