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

html preview: disconnect 'changed' on webview closing

parent 31e2c6d0
......@@ -354,8 +354,12 @@ class HtmlPreviewView(Ide.LayoutView):
self.rst = True
document.connect('changed', self.on_changed)
self.webview.connect('destroy', self.web_view_destroyed)
def web_view_destroyed(self, web_view):
def do_get_title(self):
title = self.document.get_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