Commit f254a979 authored by Sébastien Lafargue's avatar Sébastien Lafargue

html preview: disconnect 'changed' on webview closing

parent 31e2c6d0
...@@ -354,8 +354,12 @@ class HtmlPreviewView(Ide.LayoutView): ...@@ -354,8 +354,12 @@ class HtmlPreviewView(Ide.LayoutView):
self.rst = True self.rst = True
document.connect('changed', self.on_changed) document.connect('changed', self.on_changed)
self.webview.connect('destroy', self.web_view_destroyed)
self.on_changed(document) self.on_changed(document)
def web_view_destroyed(self, web_view):
def do_get_title(self): def do_get_title(self):
title = self.document.get_title() title = self.document.get_title()
return '%s (Preview)' % title return '%s (Preview)' % title
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment