mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 19:22:40 +02:00
Fix #998364 (Comments edit clear issues in single metadata edit)
This commit is contained in:
parent
c290e09391
commit
54832c893e
1 changed files with 4 additions and 2 deletions
|
|
@ -161,8 +161,8 @@ def __init__(self, parent=None):
|
|||
self.page().setContentEditable(True)
|
||||
|
||||
def clear_text(self, *args):
|
||||
self.action_select_all.trigger()
|
||||
self.action_cut.trigger()
|
||||
self.html = u''
|
||||
self.page().contentsChanged.emit()
|
||||
|
||||
def link_clicked(self, url):
|
||||
open_url(url)
|
||||
|
|
@ -627,4 +627,6 @@ def hide_toolbars(self):
|
|||
w = Editor()
|
||||
w.resize(800, 600)
|
||||
w.show()
|
||||
w.html = '<b>testing</b>'
|
||||
app.exec_()
|
||||
#print w.html
|
||||
|
|
|
|||
Loading…
Reference in a new issue