|
|
@ -1408,8 +1408,6 @@ void KMReaderWin::updateReaderWin()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (!mMsgDisplay) return;
|
|
|
|
if (!mMsgDisplay) return;
|
|
|
|
|
|
|
|
|
|
|
|
mViewer->setOnlyLocalReferences(!htmlLoadExternal());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
htmlWriter()->reset();
|
|
|
|
htmlWriter()->reset();
|
|
|
|
|
|
|
|
|
|
|
|
KMFolder* folder = 0;
|
|
|
|
KMFolder* folder = 0;
|
|
|
@ -1579,6 +1577,7 @@ void KMReaderWin::parseMsg(KMMessage* aMsg)
|
|
|
|
// - this can only be done *after* calling parseObjectTree()
|
|
|
|
// - this can only be done *after* calling parseObjectTree()
|
|
|
|
KMMsgEncryptionState encryptionState = mRootNode->overallEncryptionState();
|
|
|
|
KMMsgEncryptionState encryptionState = mRootNode->overallEncryptionState();
|
|
|
|
KMMsgSignatureState signatureState = mRootNode->overallSignatureState();
|
|
|
|
KMMsgSignatureState signatureState = mRootNode->overallSignatureState();
|
|
|
|
|
|
|
|
mViewer->setOnlyLocalReferences(!htmlLoadExternal());
|
|
|
|
// Don't crash when switching message while GPG passphrase entry dialog is shown #53185
|
|
|
|
// Don't crash when switching message while GPG passphrase entry dialog is shown #53185
|
|
|
|
if (aMsg != message()) {
|
|
|
|
if (aMsg != message()) {
|
|
|
|
displayMessage();
|
|
|
|
displayMessage();
|
|
|
@ -2515,8 +2514,19 @@ bool KMReaderWin::htmlMail()
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
bool KMReaderWin::htmlLoadExternal()
|
|
|
|
bool KMReaderWin::htmlLoadExternal()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return ((mHtmlLoadExternal && !mHtmlLoadExtOverride) ||
|
|
|
|
if (!mRootNode)
|
|
|
|
(!mHtmlLoadExternal && mHtmlLoadExtOverride));
|
|
|
|
{
|
|
|
|
|
|
|
|
return mHtmlLoadExtOverride;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// when displaying an encrypted message, only load external resources on explicit request
|
|
|
|
|
|
|
|
if (mRootNode->overallEncryptionState() != KMMsgNotEncrypted)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return mHtmlLoadExtOverride;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ((mHtmlLoadExternal && !mHtmlLoadExtOverride) ||
|
|
|
|
|
|
|
|
(!mHtmlLoadExternal && mHtmlLoadExtOverride));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|