mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-31 10:54:50 +01: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue