2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 23:25:15 +00:00

inline bots panel crash fixed, field placeholder fixed, controls active in mediaview when context menu is shown

This commit is contained in:
John Preston
2016-01-02 08:33:26 +08:00
parent e43ea5101e
commit 4426e2dd78
4 changed files with 34 additions and 21 deletions

View File

@@ -1900,6 +1900,10 @@ void StickerPanInner::refreshInlineRows(UserData *bot, const InlineResults &resu
return;
}
if (_showingInlineItems) {
clearSelection(true);
}
t_assert(bot != 0);
_inlineBot = bot;
_inlineBotTitle = lng_inline_bot_results(lt_inline_bot, bot->username.isEmpty() ? bot->name : ('@' + bot->username));
@@ -1976,7 +1980,10 @@ void StickerPanInner::refreshInlineRows(UserData *bot, const InlineResults &resu
update();
emit refreshIcons();
updateSelected();
if (_showingInlineItems) {
_lastMousePos = QCursor::pos();
updateSelected();
}
}
void StickerPanInner::ui_repaintInlineItem(const LayoutInlineItem *layout) {