Fix broken HTML message preview with some Reddit feeds.

This commit is contained in:
Martin Rotter 2019-04-04 08:02:17 +02:00
parent eae86a4d4e
commit 2c33807ef8
3 changed files with 5 additions and 4 deletions

View File

@ -7242,7 +7242,7 @@ a.list-group-item-danger.active:focus {
</style>
<!-- %1 gets replaced by actual title of the message by RSS Guard. -->
<!-- PERCENTAGE-1 gets replaced by actual title of the message by RSS Guard. -->
<title>
%1
</title>
@ -7276,7 +7276,7 @@ a.list-group-item-danger.active:focus {
</script>
</head>
<!-- %2 gets replaced by contents of message(s). -->
<!-- PERCENTAGE-2 gets replaced by contents of message(s). -->
<body>
%2
</body>

View File

@ -5938,7 +5938,7 @@
</style>
<!-- %1 gets replaced by actual title of the message by RSS Guard. -->
<!-- PERCENTAGE-1 gets replaced by actual title of the message by RSS Guard. -->
<title>
%1
</title>
@ -5972,7 +5972,7 @@
</script>
</head>
<!-- %2 gets replaced by contents of message(s). -->
<!-- PERCENTAGE-2 gets replaced by contents of message(s). -->
<body>
%2
</body>

View File

@ -120,6 +120,7 @@ void WebViewer::loadMessages(const QList<Message>& messages, RootItem* root) {
m_root = root;
m_messageContents = skin.m_layoutMarkupWrapper.arg(messages.size() == 1 ? messages.at(0).m_title : tr("Newspaper view"),
messages_layout);
bool previously_enabled = isEnabled();
setEnabled(false);