Fix bug #763780: 'QWidget' object has no attribute 'filler'

This commit is contained in:
John Schember 2011-04-17 13:36:20 -04:00
parent 4d9c24a0eb
commit f3112b3556

View File

@ -317,7 +317,7 @@ class BaseToolBar(QToolBar): # {{{
QToolBar.resizeEvent(self, ev)
style = self.get_text_style()
self.setToolButtonStyle(style)
if hasattr(self, 'd_widget'):
if hasattr(self, 'd_widget') and hasattr(self.d_widget, 'filler'):
self.d_widget.filler.setVisible(style != Qt.ToolButtonIconOnly)
def get_text_style(self):