projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a9dfa3
)
destroy the frame if the exception occurs in a dialog shown from it
author
Vadim Zeitlin
<vadim@wxwidgets.org>
Sat, 20 Sep 2003 16:23:51 +0000
(16:23 +0000)
committer
Vadim Zeitlin
<vadim@wxwidgets.org>
Sat, 20 Sep 2003 16:23:51 +0000
(16:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23744
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
samples/except/except.cpp
patch
|
blob
|
blame
|
history
diff --git
a/samples/except/except.cpp
b/samples/except/except.cpp
index 6f8a0acbbef036cdade049021150e1218141d553..a7f2d7ad94c15bca0b739cfa5d66696d59bf0e39 100644
(file)
--- a/
samples/except/except.cpp
+++ b/
samples/except/except.cpp
@@
-270,9
+270,17
@@
void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
void MyFrame::OnDialog(wxCommandEvent& WXUNUSED(event))
{
- MyDialog dlg(this);
+ try
+ {
+ MyDialog dlg(this);
- dlg.ShowModal();
+ dlg.ShowModal();
+ }
+ catch ( ... )
+ {
+ Destroy();
+ throw;
+ }
}
void MyFrame::OnThrowString(wxCommandEvent& WXUNUSED(event))