clearing presences and statuses on disconnect of an account

This commit is contained in:
Blue 2019-06-23 14:31:03 +03:00
parent 49aa99d4db
commit 833913cac2
6 changed files with 38 additions and 0 deletions

View file

@ -140,3 +140,11 @@ void Models::Item::changed(int col)
emit childChanged(this, row(), col);
}
}
void Models::Item::toOfflineState()
{
for (std::deque<Item*>::iterator itr = childItems.begin(), end = childItems.end(); itr != end; ++itr) {
Item* it = *itr;
it->toOfflineState();
}
}