From 252a6f9d5ad40f442fd4c7f8ea6e0bf0bf6d0cf6 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 5 Apr 2017 13:14:17 +0300 Subject: [PATCH] Version 1.0.29: Fix cancel GIFs search button. --- Telegram/SourceFiles/stickers/gifs_list_widget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Telegram/SourceFiles/stickers/gifs_list_widget.cpp b/Telegram/SourceFiles/stickers/gifs_list_widget.cpp index 7caa186f7..4f43efcd2 100644 --- a/Telegram/SourceFiles/stickers/gifs_list_widget.cpp +++ b/Telegram/SourceFiles/stickers/gifs_list_widget.cpp @@ -88,6 +88,9 @@ GifsListWidget::Footer::Footer(gsl::not_null parent) : InnerFoo _pan->searchForGifs(_field->getLastText()); }); _cancel->moveToRight(st::gifsSearchCancelPosition.x(), st::gifsSearchCancelPosition.y()); + _cancel->setClickedCallback([this] { + _field->setText(QString()); + }); } void GifsListWidget::Footer::stealFocus() {