diff --git a/smartlistmodel.cpp b/smartlistmodel.cpp index 38b27b0798a549ef194ee553a9753b2c24c8ae66..db26c0686e6ecfa126e8fc9560aef530bf517434 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(); }