Fixed Ui::PopupMenu submenu creation. #2971

This commit is contained in:
John Preston 2017-02-09 17:20:49 +03:00
parent 2f85997c9f
commit 3c18532612

View File

@ -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);
}
}