Fix activating window after popup menu.
This commit is contained in:
parent
983d6be8d4
commit
da3b4704bf
1 changed files with 1 additions and 1 deletions
|
|
@ -520,7 +520,7 @@ PopupMenu::~PopupMenu() {
|
||||||
}
|
}
|
||||||
if (const auto parent = parentWidget()) {
|
if (const auto parent = parentWidget()) {
|
||||||
if (QApplication::focusWidget() != nullptr
|
if (QApplication::focusWidget() != nullptr
|
||||||
&& Ui::InFocusChain(parent)) {
|
&& Ui::InFocusChain(parent->window())) {
|
||||||
ActivateWindowDelayed(parent);
|
ActivateWindowDelayed(parent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue