diff --git a/src/calibre/gui2/bars.py b/src/calibre/gui2/bars.py index 8b14d37bf4..cb1b039278 100644 --- a/src/calibre/gui2/bars.py +++ b/src/calibre/gui2/bars.py @@ -99,7 +99,7 @@ def wrap_button_text(text, max_len=MAX_TEXT_LENGTH): def rewrap_button(w): - if not sip.isdeleted(w): + if not sip.isdeleted(w) and w.defaultAction() is not None: w.setText(wrap_button_text(w.defaultAction().text()))