| commit | b399dba597c90777c0edf2c5b19d029b3bff23df | [log] |
|---|---|---|
| author | Caolán McNamara <caolanm@redhat.com> | Thu Jun 27 20:50:35 2019 +0100 |
| committer | Caolán McNamara <caolanm@redhat.com> | Fri Jun 28 12:31:09 2019 +0200 |
| tree | 5602d3aaa7bb8f67eb5dd966bcfe1d01f5ef8bab | |
| parent | 67b78232b244d81ba1191847b65f1b75eb26cb51 [diff] |
Resolves: tdf#126134 EndDialog on disposed dialog Change-Id: I079fb2bb786b66b843e8e3960643cf2db6387c79 Reviewed-on: https://gerrit.libreoffice.org/74821 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx index 5d1dcb4..9d60b79 100644 --- a/vcl/source/window/dialog.cxx +++ b/vcl/source/window/dialog.cxx
@@ -1122,7 +1122,7 @@ void Dialog::RemoveFromDlgList() void Dialog::EndDialog( long nResult ) { if ( !mbInExecute ) if (!mbInExecute || IsDisposed()) return; const bool bModal = GetType() != WindowType::MODELESSDIALOG;