2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

fixed code for old Qt versions

This commit is contained in:
John Preston
2015-12-03 22:55:44 +03:00
parent 5502f2503f
commit de8ffc78d7
4 changed files with 10 additions and 5 deletions

View File

@@ -762,7 +762,8 @@ void ApiWrap::gotStickerSet(uint64 setId, const MTPmessages_StickerSet &result)
}
}
if (pack.isEmpty()) {
cRefStickerSetsOrder().removeOne(setId);
int32 removeIndex = cStickerSetsOrder().indexOf(setId);
if (removeIndex >= 0) cRefStickerSetsOrder().removeAt(removeIndex);
sets.erase(it);
} else {
it->stickers = pack;