mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Properly initialize standalone comments editing box
This commit is contained in:
parent
f11ab7d0c3
commit
e60dce0133
@ -18,8 +18,8 @@ class CommentsDialog(QDialog, Ui_CommentsDialog):
|
||||
self.setWindowFlags(self.windowFlags()&(~Qt.WindowContextHelpButtonHint))
|
||||
self.setWindowIcon(icon)
|
||||
|
||||
if text is not None:
|
||||
self.textbox.html = comments_to_html(text)
|
||||
self.textbox.html = comments_to_html(text) if text else ''
|
||||
self.textbox.wyswyg_dirtied()
|
||||
# self.textbox.setTabChangesFocus(True)
|
||||
self.buttonBox.button(QDialogButtonBox.Ok).setText(_('&OK'))
|
||||
self.buttonBox.button(QDialogButtonBox.Cancel).setText(_('&Cancel'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user