Commit f894cffa authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix 395711: External images not loaded by default if message was opened in a separate window

FIXED-IN: 22.08.0
BUG: 395711
parent 19fb5742
Pipeline #215679 failed with stage
in 1 minute and 7 seconds
......@@ -2561,18 +2561,20 @@ void KMMainWidget::slotItemsFetchedForActivation(KMCommand *command)
auto fetchCmd = qobject_cast<KMFetchMessageCommand *>(command);
const Item msg = fetchCmd->item();
KMReaderMainWin *win = fetchCmd->readerMainWin();
if (!win) {
win = new KMReaderMainWin(mFolderDisplayFormatPreference, mFolderHtmlLoadExtPreference);
}
if (mMsgView && mMsgView->viewer()) {
win->viewer()->setWebViewZoomFactor(mMsgView->viewer()->webViewZoomFactor());
win->viewer()->setHtmlLoadExtOverride(mMsgView->viewer()->htmlLoadExtOverride());
win->viewer()->setDisplayFormatMessageOverwrite(mMsgView->viewer()->displayFormatMessageOverwrite());
}
win->showMessage(overrideEncoding(), msg, CommonKernel->collectionFromId(msg.parentCollection().id()));
const bool useFixedFont = mMsgView ? mMsgView->isFixedFont() : MessageViewer::MessageViewerSettings::self()->useFixedFont();
win->setUseFixedFont(useFixedFont);
win->showMessage(overrideEncoding(), msg, CommonKernel->collectionFromId(msg.parentCollection().id()));
if (mMsgView) {
auto viewer = mMsgView->viewer();
if (viewer) {
win->viewer()->setWebViewZoomFactor(viewer->webViewZoomFactor());
win->viewer()->setHtmlLoadExtOverride(viewer->htmlLoadExtOverride());
win->viewer()->setDisplayFormatMessageOverwrite(viewer->displayFormatMessageOverwrite());
}
}
win->show();
}
......
Supports Markdown
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