dabo Commit
Revision 6161
Date: 2010-10-24 16:52:00 -0700 (Sun, 24 Oct 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6161
Changed:
U trunk/ide/ClassDesigner.py
U trunk/ide/ClassDesignerMenu.py
Log:
Fixed a bug that caused a crash when running the Class Designer without an
initial file path
Diff:
Modified: trunk/ide/ClassDesigner.py
===================================================================
--- trunk/ide/ClassDesigner.py 2010-10-24 23:11:52 UTC (rev 6160)
+++ trunk/ide/ClassDesigner.py 2010-10-24 23:52:00 UTC (rev 6161)
@@ -353,7 +353,10 @@
class DesForm(dfm, base):
_superBase = base
_superMixin = dfm
- _classFile = os.path.realpath(filepath)
+ try:
+ _classFile = os.path.realpath(filepath)
+ except AttributeError:
+ _classFile = None
def __init__(self, parent=None, *args, **kwargs):
self._isMain = formIsMain
if isDialog:
Modified: trunk/ide/ClassDesignerMenu.py
===================================================================
--- trunk/ide/ClassDesignerMenu.py 2010-10-24 23:11:52 UTC (rev 6160)
+++ trunk/ide/ClassDesignerMenu.py 2010-10-24 23:52:00 UTC (rev 6161)
@@ -19,9 +19,9 @@
mb = None
if mb:
app = target.Controller
- fm = mb.getMenu("base_file")
- em = mb.getMenu("base_edit")
- vm = mb.getMenu("base_view")
+ fm = mb.fileMenu
+ em = mb.editMenu
+ vm = mb.viewMenu
app.barShowPropSheet = vm.append(_("Hide Object Info Form"),
OnHit=app.onTogglePropSheet,
_______________________________________________
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]