diff --git a/applets/kicker/plugin/systemmodel.cpp b/applets/kicker/plugin/systemmodel.cpp --- a/applets/kicker/plugin/systemmodel.cpp +++ b/applets/kicker/plugin/systemmodel.cpp @@ -93,6 +93,10 @@ return entry->group(); } else if (role == Kicker::FavoriteIdRole) { return entry->id(); + } else if (role == Kicker::HasActionListRole) { + return entry->hasActions(); + } else if (role == Kicker::ActionListRole) { + return entry->actions(); } return QVariant(); @@ -105,11 +109,8 @@ bool SystemModel::trigger(int row, const QString &actionId, const QVariant &argument) { - Q_UNUSED(actionId) - Q_UNUSED(argument) - if (row >= 0 && row < m_entryList.count()) { - m_entryList.at(row)->run(); + m_entryList.at(row)->run(actionId, argument); return true; }