mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix a crash when using some third party plugins and enabling the "two lines for text under icons" option
Fixes #1787700 [Calibre closes after remove toolbar actions](https://bugs.launchpad.net/calibre/+bug/1787700)
This commit is contained in:
parent
19f83cde21
commit
3e0671ba17
@ -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()))
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user