diff options
author | Erik Verbruggen <erik@verbruggen.consulting> | 2022-02-24 20:38:25 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2022-03-11 17:35:40 +0300 |
commit | 2fc0c11ec5543ee74d34e1b38f7605d674f53230 (patch) | |
tree | f898489673beafe3037f4338060c3c553bd5d8c7 /src/gui/protocolwidget.h | |
parent | 9e084d0660ccaed0be494dc205ce6512a5648836 (diff) |
Fix account filtering in Server Activity tab
The `Models::addFilterMenuItems` method is used in 2 cases, once in the
`ActivityWidget`, and once in the `ProtocolWidget`. Both have their own
item model, so both need their own role passed in for filtering on.
The bug was that `ProtocolItemModel::ProtocolItemRole::Account` was used
forall cases, even when a `ActivityListModel::ActivityRole::Account`
should have been passed in.
Fixes: https://github.com/owncloud/client/issues/9425
Diffstat (limited to 'src/gui/protocolwidget.h')
-rw-r--r-- | src/gui/protocolwidget.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/protocolwidget.h b/src/gui/protocolwidget.h index ac6e111eb..5dfb36319 100644 --- a/src/gui/protocolwidget.h +++ b/src/gui/protocolwidget.h @@ -49,7 +49,7 @@ public: ~ProtocolWidget() override; static void showContextMenu(QWidget *parent, ProtocolItemModel *model, const QModelIndexList &items); - static QMenu *showFilterMenu(QWidget *parent, QSortFilterProxyModel *model); + static QMenu *showFilterMenu(QWidget *parent, QSortFilterProxyModel *model, int role, const QString &columnName); public slots: void slotItemCompleted(const QString &folder, const SyncFileItemPtr &item); |