diff options
-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 |