forked from blue/squawk
uploading multiple messages fix, some warnings fix
This commit is contained in:
parent
0c33d81c59
commit
fe27955689
14 changed files with 51 additions and 56 deletions
|
@ -322,7 +322,7 @@ void Models::Contact::getMessages(Models::Contact::Messages& container) const
|
|||
void Models::Contact::toOfflineState()
|
||||
{
|
||||
emit childIsAboutToBeRemoved(this, 0, childItems.size());
|
||||
for (int i = 0; i < childItems.size(); ++i) {
|
||||
for (std::deque<Item*>::size_type i = 0; i < childItems.size(); ++i) {
|
||||
Item* item = childItems[i];
|
||||
disconnect(item, &Item::childChanged, this, &Contact::refresh);
|
||||
Item::_removeChild(i);
|
||||
|
|
|
@ -236,7 +236,7 @@ void Models::Room::getMessages(Models::Room::Messages& container) const
|
|||
void Models::Room::toOfflineState()
|
||||
{
|
||||
emit childIsAboutToBeRemoved(this, 0, childItems.size());
|
||||
for (int i = 0; i < childItems.size(); ++i) {
|
||||
for (std::deque<Item*>::size_type i = 0; i < childItems.size(); ++i) {
|
||||
Item* item = childItems[i];
|
||||
Item::_removeChild(i);
|
||||
item->deleteLater();
|
||||
|
|
|
@ -518,7 +518,7 @@ void Models::Roster::removeGroup(const QString& account, const QString& name)
|
|||
|
||||
if (toInsert.size() > 0) {
|
||||
Account* acc = accounts.find("account")->second;
|
||||
for (int i = 0; i < toInsert.size(); ++i) {
|
||||
for (std::deque<Contact*>::size_type i = 0; i < toInsert.size(); ++i) {
|
||||
Contact* cont = toInsert[i];
|
||||
acc->appendChild(cont); //TODO optimisation
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue