From cce9d619bb81ba344f1113ca501f8623e6cd6fe8 Mon Sep 17 00:00:00 2001 From: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com> Date: Thu, 3 Jan 2019 10:05:31 -0500 Subject: [PATCH] smartlist: reset model when changing accounts Change-Id: I0c00d35c5637cc4a8dd4b34778ad83351898c1ea --- smartlistmodel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/smartlistmodel.cpp b/smartlistmodel.cpp index 38b27b0..db26c06 100644 --- a/smartlistmodel.cpp +++ b/smartlistmodel.cpp @@ -151,5 +151,7 @@ Qt::ItemFlags SmartListModel::flags(const QModelIndex &index) const void SmartListModel::setAccount(const std::string& accId) { + beginResetModel(); accId_ = accId; + endResetModel(); } -- GitLab