Fix activating window after popup menu.

This commit is contained in:
John Preston 2019-12-31 10:29:48 +03:00
parent 983d6be8d4
commit da3b4704bf

View file

@ -520,7 +520,7 @@ PopupMenu::~PopupMenu() {
}
if (const auto parent = parentWidget()) {
if (QApplication::focusWidget() != nullptr
&& Ui::InFocusChain(parent)) {
&& Ui::InFocusChain(parent->window())) {
ActivateWindowDelayed(parent);
}
}