diff options
author | Thomas Fitzsimmons <fitzsim@fitzsim.org> | 2010-03-31 10:41:09 -0400 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2010-12-16 00:43:09 -0600 |
commit | 1fc57f14717c744fa179d6caf76850d90711daa9 (patch) | |
tree | 701dbcbdc29bb1ef3f5c878bde487a43a9174411 | |
parent | 77c041faacfe5af1576ca29b902ced9168cee4ae (diff) | |
download | nanoengineer-theirix-master.tar.gz nanoengineer-theirix-master.zip |
-rw-r--r-- | cad/src/ne1_ui/toolbars/FlyoutToolbar.py | 7 |
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 |