Skip to content
Snippets Groups Projects
Commit cce9d619 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

smartlist: reset model when changing accounts

Change-Id: I0c00d35c5637cc4a8dd4b34778ad83351898c1ea
parent 68abac99
No related branches found
No related tags found
No related merge requests found
...@@ -151,5 +151,7 @@ Qt::ItemFlags SmartListModel::flags(const QModelIndex &index) const ...@@ -151,5 +151,7 @@ Qt::ItemFlags SmartListModel::flags(const QModelIndex &index) const
void void
SmartListModel::setAccount(const std::string& accId) SmartListModel::setAccount(const std::string& accId)
{ {
beginResetModel();
accId_ = accId; accId_ = accId;
endResetModel();
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment