diff --git a/Telegram/SourceFiles/ui/widgets/popup_menu.cpp b/Telegram/SourceFiles/ui/widgets/popup_menu.cpp index 18ea6ec4e..e808d1367 100644 --- a/Telegram/SourceFiles/ui/widgets/popup_menu.cpp +++ b/Telegram/SourceFiles/ui/widgets/popup_menu.cpp @@ -270,6 +270,10 @@ void PopupMenu::childHiding(PopupMenu *child) { if (_activeSubmenu && _activeSubmenu == child) { _activeSubmenu = SubmenuPointer(); } + if (!_hiding && !isHidden()) { + windowHandle()->requestActivate(); + activateWindow(); + } } void PopupMenu::setOrigin(PanelAnimation::Origin origin) {