dabo Commit
Revision 5804
Date: 2010-05-03 11:18:36 -0700 (Mon, 03 May 2010)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5804
Changed:
U trunk/dabo/ui/uiwx/dDialog.py
Log:
I've had this error happen a handful of times over the years, but I can't
reproduce it. I have no idea why sometimes the dialog isn't modal at the
time of EndModal(). If I still get error reports, I'll add a try/except
block.
Shutter Studio Error Notification
Customer:
License:
User Timestamp: 2010-05-03 03:50:24.906000
Server Timestamp: 2010-05-03 03:50:22.644204
Version, Platform: 0.9.41 Windows-XP-5.1.2600
Exception Object: C++ assertion "IsModal()" failed at
..\..\src\msw\dialog.cpp(361) in wxDialog::EndModal(): EndModal() called for
non modal dialog
Exception Type: <class 'wx._core.PyAssertionError'>
Active Form: <DlgEditProductionOrderOpening (baseclass
dabo.ui.dDialog.dOkCancelDialog, id:-604)>
Active Control: <dButton (baseclass dabo.ui.dButton, id:-605)>
Traceback (most recent call last):
File "dabo\ui\uiwx\dControlMixin.pyo", line 27, in _onWxHit
File "dabo\ui\uiwx\dPemMixin.pyo", line 975, in raiseEvent
File "dabo\lib\eventMixin.pyo", line 93, in raiseEvent
File "dabo\ui\uiwx\dDialog.pyo", line 388, in _onOK
File "dabo\ui\uiwx\dDialog.pyo", line 51, in EndModal
File "wx\_windows.pyo", line 715, in EndModal
<class 'wx._core.PyAssertionError'>: C++ assertion "IsModal()" failed at
..\..\src\msw\dialog.cpp(361) in wxDialog::EndModal(): EndModal() called for
non modal dialog
=======================================================
User Notes:
=======================================================
Diff:
Modified: trunk/dabo/ui/uiwx/dDialog.py
===================================================================
--- trunk/dabo/ui/uiwx/dDialog.py 2010-05-03 12:01:05 UTC (rev 5803)
+++ trunk/dabo/ui/uiwx/dDialog.py 2010-05-03 18:18:36 UTC (rev 5804)
@@ -48,7 +48,8 @@
def EndModal(self, *args, **kwargs):
self.saveSizeAndPosition()
- super(dDialog, self).EndModal(*args, **kwargs)
+ if self.Modal:
+ super(dDialog, self).EndModal(*args, **kwargs)
def _afterInit(self):
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]