mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-25 00:34:49 +00:00
Fixed Ui::PopupMenu submenu creation. #2971
This commit is contained in:
parent
2f85997c9f
commit
3c18532612
@ -38,7 +38,7 @@ PopupMenu::PopupMenu(QWidget*, QMenu *menu, const style::PopupMenu &st) : TWidge
|
||||
|
||||
for (auto action : actions()) {
|
||||
if (auto submenu = action->menu()) {
|
||||
auto it = _submenus.insert(action, new PopupMenu(submenu, st));
|
||||
auto it = _submenus.insert(action, new PopupMenu(nullptr, submenu, st));
|
||||
it.value()->deleteOnHide(false);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user