projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
style button is smaller now
[quassel.git]
/
src
/
client
/
coreaccountmodel.cpp
diff --git
a/src/client/coreaccountmodel.cpp
b/src/client/coreaccountmodel.cpp
index
1ab159c
..
a7a2f01
100644
(file)
--- a/
src/client/coreaccountmodel.cpp
+++ b/
src/client/coreaccountmodel.cpp
@@
-39,11
+39,13
@@
CoreAccountModel::CoreAccountModel(const CoreAccountModel *other, QObject *paren
void CoreAccountModel::update(const CoreAccountModel *other) {
clear();
void CoreAccountModel::update(const CoreAccountModel *other) {
clear();
- beginInsertRows(QModelIndex(), 0, other->_accounts.count() -1);
+ if (other->_accounts.count() > 0) {
+ beginInsertRows(QModelIndex(), 0, other->_accounts.count() -1);
+ _accounts = other->_accounts;
+ endInsertRows();
+ }
_internalAccount = other->internalAccount();
_internalAccount = other->internalAccount();
- _accounts = other->_accounts;
_removedAccounts = other->_removedAccounts;
_removedAccounts = other->_removedAccounts;
- endInsertRows();
}
void CoreAccountModel::load() {
}
void CoreAccountModel::load() {