diff options
| author | Alexander Lohnau <[email protected]> | 2020-09-05 17:32:48 +0000 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2020-09-05 17:32:48 +0000 |
| commit | 8e2f0a1d5b88f9ac6e06a0ac7a64d7080198f678 (patch) | |
| tree | d55048dcacf5b5803be8bc0266caebd3b88f18dc /src/settings/servicemodel.h | |
| parent | a1d5d75bea304aad11eb4ae08198f552e7f8f0a1 (diff) | |
Clear services model after KNS entries changed
We can not know if a service got deleted, so we clear
the model and reload the services. The issue that the entries are
not uninstalled has already been solved, this is just a patch to
fix the state of the UI.
CCBUG: 420312
Diffstat (limited to 'src/settings/servicemodel.h')
| -rw-r--r-- | src/settings/servicemodel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/settings/servicemodel.h b/src/settings/servicemodel.h index 92dd43dda..150159137 100644 --- a/src/settings/servicemodel.h +++ b/src/settings/servicemodel.h @@ -38,6 +38,7 @@ public: bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole) override; QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override; int rowCount(const QModelIndex& parent = QModelIndex()) const override; + void clear(); private: struct ServiceItem |
