2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 00:55:12 +00:00

version 0.9.18: crashfix + fix of transparent gifs sending

This commit is contained in:
John Preston
2016-01-05 12:28:06 +08:00
parent b82adc7610
commit f4d159b2f0
9 changed files with 43 additions and 35 deletions

View File

@@ -1912,9 +1912,7 @@ int32 StickerPanInner::refreshInlineRows(UserData *bot, const InlineResults &res
return 0;
}
if (_showingInlineItems) {
clearSelection(true);
}
clearSelection(true);
t_assert(_inlineBot != 0);
_inlineBotTitle = lng_inline_bot_results(lt_inline_bot, _inlineBot->username.isEmpty() ? _inlineBot->name : ('@' + _inlineBot->username));
@@ -1942,10 +1940,9 @@ int32 StickerPanInner::refreshInlineRows(UserData *bot, const InlineResults &res
update();
emit refreshIcons();
if (_showingInlineItems) {
_lastMousePos = QCursor::pos();
updateSelected();
}
_lastMousePos = QCursor::pos();
updateSelected();
return added;
}
@@ -2440,10 +2437,12 @@ void StickerPanInner::showStickerSet(uint64 setId) {
void StickerPanInner::updateShowingSavedGifs() {
if (cShowingSavedGifs()) {
if (!_showingInlineItems) {
clearSelection(true);
_showingSavedGifs = _showingInlineItems = true;
if (_inlineRows.isEmpty()) refreshSavedGifs();
}
} else if (!_showingInlineItems) {
clearSelection(true);
_showingSavedGifs = false;
}
}