mirror of
https://github.com/martinrotter/rssguard.git
synced 2024-12-28 00:50:26 +01:00
Fix focus stealing.
This commit is contained in:
parent
2c93c0b0f4
commit
f22530fd1d
@ -58,10 +58,11 @@ void MessageBrowser::loadMessages(const QList<Message> &messages) {
|
|||||||
|
|
||||||
QString layout_wrapper = skin.m_layoutMarkupWrapper.arg(messages.size() == 1 ? messages.at(0).m_title : tr("Newspaper view"),
|
QString layout_wrapper = skin.m_layoutMarkupWrapper.arg(messages.size() == 1 ? messages.at(0).m_title : tr("Newspaper view"),
|
||||||
messages_layout);
|
messages_layout);
|
||||||
|
bool previously_enabled = isEnabled();
|
||||||
|
|
||||||
IOFactory::writeTextFile("aaa.html", layout_wrapper.toUtf8());
|
setEnabled(false);
|
||||||
|
|
||||||
setHtml(layout_wrapper, QUrl(INTERNAL_URL_MESSAGE));
|
setHtml(layout_wrapper, QUrl(INTERNAL_URL_MESSAGE));
|
||||||
|
setEnabled(previously_enabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MessageBrowser::loadMessage(const Message &message) {
|
void MessageBrowser::loadMessage(const Message &message) {
|
||||||
|
Loading…
Reference in New Issue
Block a user