Fix search in topic cancel on forum closing.
This commit is contained in:
parent
80d4c3affe
commit
153fb3e579
|
@ -750,9 +750,7 @@ void Widget::changeOpenedFolder(Data::Folder *folder, anim::type animated) {
|
||||||
|
|
||||||
void Widget::changeOpenedForum(ChannelData *forum, anim::type animated) {
|
void Widget::changeOpenedForum(ChannelData *forum, anim::type animated) {
|
||||||
changeOpenedSubsection([&] {
|
changeOpenedSubsection([&] {
|
||||||
if (forum) {
|
cancelSearch();
|
||||||
cancelSearch();
|
|
||||||
}
|
|
||||||
_openedForum = forum;
|
_openedForum = forum;
|
||||||
_api.request(base::take(_topicSearchRequest)).cancel();
|
_api.request(base::take(_topicSearchRequest)).cancel();
|
||||||
_inner->changeOpenedForum(forum);
|
_inner->changeOpenedForum(forum);
|
||||||
|
|
Loading…
Reference in New Issue