Permalink
Browse files

Make getExtensionButton a little more robust in FlyoutToolbar.py in UI

  • Loading branch information...
1 parent 77c041f commit 1fc57f14717c744fa179d6caf76850d90711daa9 @fitzsim fitzsim committed with Mar 31, 2010
Showing with 4 additions and 3 deletions.
  1. +4 −3 cad/src/ne1_ui/toolbars/FlyoutToolbar.py
@@ -79,9 +79,10 @@ def getExtensionButton(self):
btn = None
clist = self.children()
- if len(clist) > 2:
- if isinstance(clist[2], QToolButton):
- btn = clist[2]
+ for c in range(0, len(clist)):
+ if isinstance(clist[c], QToolButton):
+ btn = clist[c]
+ break
return btn

0 comments on commit 1fc57f1

Please sign in to comment.