switch preview qtextedit format back to plain text after loading so that selections copy plain text not html

This commit is contained in:
dockes 2009-12-07 14:32:26 +00:00
parent bab030f846
commit e5efa41462

View File

@ -992,6 +992,9 @@ bool Preview::loadDocInCurrentTab(const Rcl::Doc &idoc, int docnum)
if (udit != idoc.meta.end())
historyEnterDoc(g_dynconf, udit->second);
// Switch format back to plaintext so that selections generate plain text
editor->setTextFormat(Qt::PlainText);
editor->setFocus();
emit(previewExposed(this, m_searchId, docnum));
LOGDEB(("LoadFileInCurrentTab: returning true\n"));