showPreview() was not working as intended; fixed.

The preview text displayed in the previewEdit widget was the text of
the content opened from the wiki, and not the text entered by the user
in the contentEdit widget.
This commit is contained in:
Clément Schreiner 2011-02-16 19:54:19 +01:00
commit cbe44de033

View file

@ -78,5 +78,7 @@ self._currentTabChanged)
print backtrace
def showPreview(self):
self.ui.previewEdit.setHtml(self.backend.get_content_preview(self.content))
tmp_content = self.content
tmp_content.content=unicode(self.ui.contentEdit.toPlainText())
self.ui.previewEdit.setHtml(self.backend.get_content_preview(tmp_content))
return