Permalink
Browse files

Properly initialize standalone comments editing box

  • Loading branch information...
1 parent f11ab7d commit e60dce0133ef1505f9961680f9195d893da76d82 @kovidgoyal committed Oct 16, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/calibre/gui2/dialogs/comments_dialog.py
@@ -18,8 +18,8 @@ def __init__(self, parent, text, column_name=None):
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'))

0 comments on commit e60dce0

Please sign in to comment.