diff options
-rw-r--r-- | vcl/source/window/dialog.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx index e88d5aacaea2..b95dfb299f41 100644 --- a/vcl/source/window/dialog.cxx +++ b/vcl/source/window/dialog.cxx @@ -1092,7 +1092,7 @@ void Dialog::RemoveFromDlgList() void Dialog::EndDialog( long nResult ) { - if ( !mbInExecute ) + if (!mbInExecute || IsDisposed()) return; const bool bModal = GetType() != WindowType::MODELESSDIALOG; |