switch preview qtextedit format back to plain text after loading so that selections copy plain text not html
This commit is contained in:
parent
bab030f846
commit
e5efa41462
@ -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"));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user