summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Fitzsimmons <fitzsim@fitzsim.org>2010-03-31 10:41:09 -0400
committerBryan Bishop <kanzure@gmail.com>2010-12-16 00:43:09 -0600
commit1fc57f14717c744fa179d6caf76850d90711daa9 (patch)
tree701dbcbdc29bb1ef3f5c878bde487a43a9174411
parent77c041faacfe5af1576ca29b902ced9168cee4ae (diff)
downloadnanoengineer-theirix-master.tar.gz
nanoengineer-theirix-master.zip
Make getExtensionButton a little more robust in FlyoutToolbar.py in UIHEADmaster
-rw-r--r--cad/src/ne1_ui/toolbars/FlyoutToolbar.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/cad/src/ne1_ui/toolbars/FlyoutToolbar.py b/cad/src/ne1_ui/toolbars/FlyoutToolbar.py
index c6a44e855..8cc643d45 100644
--- a/cad/src/ne1_ui/toolbars/FlyoutToolbar.py
+++ b/cad/src/ne1_ui/toolbars/FlyoutToolbar.py
@@ -79,9 +79,10 @@ class FlyoutToolBar(QToolBar_WikiHelp):
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