From 02a89e3324c142544af58a4a2b05f9caa121a37f Mon Sep 17 00:00:00 2001 From: Nicolas Jager <nicolas.jager@savoirfairelinux.com> Date: Mon, 17 Apr 2017 10:13:26 -0400 Subject: [PATCH] PeopleProxy : swap AccountModel for AvailableAccountModel - edit PeopleProxy to use AvailableAccountModel, so it's not showing the disabled accounts anymore. Change-Id: Iedd7dbc81b36cd2804bd54edf47ed0be463a33c9 Reviewed-by: Guillaume Roguez <guillaume.roguez@savoirfairelinux.com> --- src/recentmodel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/recentmodel.cpp b/src/recentmodel.cpp index 3703608e..6c70b3dd 100644 --- a/src/recentmodel.cpp +++ b/src/recentmodel.cpp @@ -40,6 +40,7 @@ #include "accountmodel.h" #include "contactrequest.h" #include "certificate.h" +#include "availableaccountmodel.h" struct CallGroup { @@ -1147,7 +1148,7 @@ PeopleProxy::filterAcceptsRow(int source_row, const QModelIndex & source_parent) //we filter only on top nodes if (!source_parent.isValid() && filterRegExp().isEmpty()) { // 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*>(); // if there is no account selected, show the item. -- GitLab