projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b58a20
)
fixed wxGTK assert when closing wxMessageDialog
author
Václav Slavík
<vslavik@fastmail.fm>
Sat, 9 Feb 2008 10:39:08 +0000
(10:39 +0000)
committer
Václav Slavík
<vslavik@fastmail.fm>
Sat, 9 Feb 2008 10:39:08 +0000
(10:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51612
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
src/gtk/dialog.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/gtk/dialog.cpp
b/src/gtk/dialog.cpp
index 8a087ecae6e04c4b8c60db40f664b778e9afa794..ebc45066651b51c4f00cb2c2ede4df8b9201b4e2 100644
(file)
--- a/
src/gtk/dialog.cpp
+++ b/
src/gtk/dialog.cpp
@@
-82,7
+82,8
@@
wxDialog::~wxDialog()
m_isBeingDeleted = true;
// if the dialog is modal, this will end its event loop
- Show(false);
+ if ( IsModal() )
+ EndModal(wxID_CANCEL);
}
bool wxDialog::IsModal() const