From f22530fd1d548f60f8409b03be05de929c97e052 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Tue, 7 Jun 2016 10:51:44 +0200 Subject: [PATCH] Fix focus stealing. --- src/gui/messagebrowser.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/messagebrowser.cpp b/src/gui/messagebrowser.cpp index b50f3cc6f..823c8d540 100644 --- a/src/gui/messagebrowser.cpp +++ b/src/gui/messagebrowser.cpp @@ -58,10 +58,11 @@ void MessageBrowser::loadMessages(const QList &messages) { QString layout_wrapper = skin.m_layoutMarkupWrapper.arg(messages.size() == 1 ? messages.at(0).m_title : tr("Newspaper view"), messages_layout); + bool previously_enabled = isEnabled(); - IOFactory::writeTextFile("aaa.html", layout_wrapper.toUtf8()); - + setEnabled(false); setHtml(layout_wrapper, QUrl(INTERNAL_URL_MESSAGE)); + setEnabled(previously_enabled); } void MessageBrowser::loadMessage(const Message &message) {