Fix #8768: Show() on already open modal
Calling show() on an already open modal causes the parent to become unusable
This commit is contained in:
parent
8a62d81fc5
commit
06b5acdac0
1 changed files with 2 additions and 1 deletions
|
@ -374,7 +374,8 @@ bool NativeWindowViews::IsFocused() {
|
|||
}
|
||||
|
||||
void NativeWindowViews::Show() {
|
||||
if (is_modal() && NativeWindow::parent())
|
||||
if (is_modal() && NativeWindow::parent() &&
|
||||
!window_->native_widget_private()->IsVisible())
|
||||
static_cast<NativeWindowViews*>(NativeWindow::parent())->SetEnabled(false);
|
||||
|
||||
window_->native_widget_private()->ShowWithWindowState(GetRestoredState());
|
||||
|
|
Loading…
Reference in a new issue