Fix crash when deleting entry
The SearchProviderRegistry is a class variable and in its deconstructor all the providers are deleted.
SearchProviderRegistry::~SearchProviderRegistry()
{
qDeleteAll(m_searchProviders);
}
[KCrash Handler]
#4 0x00007f1afe1230cb in qDeleteAll<QList<SearchProvider*>::const_iterator> (begin=..., end=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qalgorithms.h:320
#5 0x00007f1afe122cb2 in qDeleteAll<QList<SearchProvider*> > (c=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qalgorithms.h:328
If you delete a provider in the GUI it is still in the list of search providers which will be deleted.