X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fcoreaccountmodel.cpp;h=f7c77240664574ba0935a7d9fe373440707214d9;hp=0e323bb48f6d53333dc89963d1902d8ec1f18da8;hb=e8a39b4c3c92e193ab861a3fea84a261bb6fbd24;hpb=db6e6642a43143bc45ddb0732d144815b68e37f8 diff --git a/src/client/coreaccountmodel.cpp b/src/client/coreaccountmodel.cpp index 0e323bb4..f7c77240 100644 --- a/src/client/coreaccountmodel.cpp +++ b/src/client/coreaccountmodel.cpp @@ -87,12 +87,10 @@ void CoreAccountModel::save() void CoreAccountModel::clear() { - if (rowCount()) { - beginRemoveRows(QModelIndex(), 0, rowCount()-1); - _internalAccount = 0; - _accounts.clear(); - endRemoveRows(); - } + beginResetModel(); + _internalAccount = 0; + _accounts.clear(); + endResetModel(); }