Crash fix for inline results clearing. Crash fix for GIF starting.

This commit is contained in:
John Preston
2016-08-15 10:39:12 +03:00
parent 247b77c784
commit 05697374c5
3 changed files with 2 additions and 13 deletions
+1 -1
View File
@@ -1725,7 +1725,6 @@ void StickerPanInner::refreshSavedGifs() {
void StickerPanInner::inlineBotChanged() {
_setGifCommand = false;
refreshInlineRows(nullptr, nullptr, true);
deleteUnusedInlineLayouts();
}
void StickerPanInner::clearInlineRows(bool resultsDeleted) {
@@ -1942,6 +1941,7 @@ int StickerPanInner::refreshInlineRows(UserData *bot, const InlineCacheEntry *en
if (clearResults()) {
if (resultsDeleted) {
clearInlineRows(true);
deleteUnusedInlineLayouts();
}
emit emptyInlineRows();
return 0;