Commit 5a0e36f1 authored by Laurent Montel's avatar Laurent Montel 😁

Make sure to not update when not necessary

parent 9610a026
......@@ -616,9 +616,11 @@ QAction *Viewer::findInMessageAction() const
void Viewer::slotChangeDisplayMail(Viewer::DisplayFormatMessage mode, bool loadExternal)
{
setHtmlLoadExtOverride(loadExternal);
setDisplayFormatMessageOverwrite(mode);
update(MimeTreeParser::Force);
if ((htmlLoadExtOverride() != loadExternal) || (displayFormatMessageOverwrite() != mode)) {
setHtmlLoadExtOverride(loadExternal);
setDisplayFormatMessageOverwrite(mode);
update(MimeTreeParser::Force);
}
}
QAction *Viewer::saveMessageDisplayFormatAction() const
......
Markdown is supported
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