From f3112b3556bed6f8b30447ef8ed36c00e4ea962e Mon Sep 17 00:00:00 2001 From: John Schember Date: Sun, 17 Apr 2011 13:36:20 -0400 Subject: [PATCH] Fix bug #763780: 'QWidget' object has no attribute 'filler' --- src/calibre/gui2/layout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/layout.py b/src/calibre/gui2/layout.py index e18b1c9eda..c72b074463 100644 --- a/src/calibre/gui2/layout.py +++ b/src/calibre/gui2/layout.py @@ -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):