From c7bc6bc98089f5239a260f5d7131cb85fe730d98 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 23 Dec 2010 10:32:51 -0700 Subject: [PATCH] Fix new comments editor not being in editable mode when no initial text is set --- src/calibre/gui2/comments_editor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/gui2/comments_editor.py b/src/calibre/gui2/comments_editor.py index ca93145915..ddff830911 100644 --- a/src/calibre/gui2/comments_editor.py +++ b/src/calibre/gui2/comments_editor.py @@ -141,6 +141,9 @@ class EditorWidget(QWebView): # {{{ self.page().setLinkDelegationPolicy(QWebPage.DelegateAllLinks) self.page().linkClicked.connect(self.link_clicked) + self.setHtml('') + self.page().setContentEditable(True) + def link_clicked(self, url): open_url(url)