[PlasmaAppletItemModel] Don't call yourself recursively

Otherwise we'll crash. This is the only occurrence I stumbled upon this right now
but there may be others in the port away from Qt4Support.

CCMAIL: apol@kde.org
wilder-5.14
Kai Uwe Broulik 10 years ago
parent 2bd772c980
commit b979342b7e
  1. 2
      components/shellprivate/widgetexplorer/plasmaappletitemmodel.cpp

@ -257,7 +257,7 @@ PlasmaAppletItemModel::PlasmaAppletItemModel(QObject * parent)
QHash<int, QByteArray> PlasmaAppletItemModel::roleNames() const
{
QHash<int, QByteArray> newRoleNames = roleNames();
QHash<int, QByteArray> newRoleNames = QAbstractItemModel::roleNames();
newRoleNames[NameRole] = "name";
newRoleNames[PluginNameRole] = "pluginName";
newRoleNames[DescriptionRole] = "description";

Loading…
Cancel
Save