Skip to content
Snippets Groups Projects
Commit 02a89e33 authored by Nicolas Jager's avatar Nicolas Jager Committed by Guillaume Roguez
Browse files

PeopleProxy : swap AccountModel for AvailableAccountModel


- edit PeopleProxy to use AvailableAccountModel, so it's not showing
the disabled accounts anymore.

Change-Id: Iedd7dbc81b36cd2804bd54edf47ed0be463a33c9
Reviewed-by: default avatarGuillaume Roguez <guillaume.roguez@savoirfairelinux.com>
parent 4e3e9204
Branches
No related tags found
No related merge requests found
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
#include "accountmodel.h" #include "accountmodel.h"
#include "contactrequest.h" #include "contactrequest.h"
#include "certificate.h" #include "certificate.h"
#include "availableaccountmodel.h"
struct CallGroup struct CallGroup
{ {
...@@ -1147,7 +1148,7 @@ PeopleProxy::filterAcceptsRow(int source_row, const QModelIndex & source_parent) ...@@ -1147,7 +1148,7 @@ PeopleProxy::filterAcceptsRow(int source_row, const QModelIndex & source_parent)
//we filter only on top nodes //we filter only on top nodes
if (!source_parent.isValid() && filterRegExp().isEmpty()) { if (!source_parent.isValid() && filterRegExp().isEmpty()) {
// get the user chosen account // get the user chosen account
auto index_chosen_account = AccountModel::instance().userSelectionModel()->currentIndex(); auto index_chosen_account = AvailableAccountModel::instance().selectionModel()->currentIndex();
auto chosen_account = index_chosen_account.data(static_cast<int>(Account::Role::Object)).value<Account*>(); auto chosen_account = index_chosen_account.data(static_cast<int>(Account::Role::Object)).value<Account*>();
// if there is no account selected, show the item. // if there is no account selected, show the item.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment