Don't call yourself recursively

As cleverly noticed by Kai

CCMAIL: kde@privat.broulik.de
wilder-5.14
Aleix Pol 10 years ago
parent b979342b7e
commit 939ba8f4eb
  1. 2
      applets/systemtray/plugin/host.cpp
  2. 2
      components/shellprivate/widgetexplorer/kcategorizeditemsviewmodels.cpp

@ -56,7 +56,7 @@ public:
}
QHash<int, QByteArray> roleNames() const override {
QHash<int, QByteArray> roles = roleNames();
QHash<int, QByteArray> roles = QStandardItemModel::roleNames();
roles[Qt::UserRole+1] = "plugin";
return roles;
}

@ -83,7 +83,7 @@ QHash<int, QByteArray> DefaultFilterModel::roleNames() const
{
static QHash<int, QByteArray> newRoleNames;
if (newRoleNames.isEmpty()) {
newRoleNames = roleNames();
newRoleNames = QAbstractItemModel::roleNames();
newRoleNames[FilterTypeRole] = "filterType";
newRoleNames[FilterDataRole] = "filterData";
newRoleNames[SeparatorRole] = "separator";

Loading…
Cancel
Save