forked from blue/squawk
some warnings fixed, new way of drawing avatars in message line
This commit is contained in:
parent
e27ae1a82f
commit
7130e674c4
7 changed files with 65 additions and 16 deletions
|
@ -97,7 +97,10 @@ void Models::Accounts::addAccount(Account* account)
|
|||
|
||||
void Models::Accounts::onAccountChanged(Item* item, int row, int col)
|
||||
{
|
||||
if (row < accs.size()) {
|
||||
if (row < 0) {
|
||||
return;
|
||||
}
|
||||
if (static_cast<std::deque<Models::Account*>::size_type>(row) < accs.size()) {
|
||||
Account* acc = getAccount(row);
|
||||
if (item != acc) {
|
||||
return; //it means the signal is emitted by one of accounts' children, not exactly him, this model has no interest in that
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue