Don't activate wrong window after popup menu.
This commit is contained in:
parent
29cb1dccc4
commit
e6914d4649
1 changed files with 2 additions and 1 deletions
|
|
@ -519,7 +519,8 @@ PopupMenu::~PopupMenu() {
|
||||||
delete submenu;
|
delete submenu;
|
||||||
}
|
}
|
||||||
if (const auto parent = parentWidget()) {
|
if (const auto parent = parentWidget()) {
|
||||||
if (QApplication::focusWidget() != nullptr) {
|
if (QApplication::focusWidget() != nullptr
|
||||||
|
&& Ui::InFocusChain(parent)) {
|
||||||
ActivateWindowDelayed(parent);
|
ActivateWindowDelayed(parent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue