try to fix erratic modals behavior

This commit is contained in:
Martin Rotter 2021-05-27 09:21:03 +02:00
parent ade6268eb1
commit 719071a9e8
2 changed files with 25 additions and 1 deletions

View File

@ -115,6 +115,25 @@ function filterMessage() {
}
```
Use published element instead of updated element for ATOM entries (only).
```js
function filterMessage() {
// Read raw contents of message and
// convert to JSON.
json = utils.fromXmlToJson(msg.rawContents);
jsonObj = JSON.parse(json)
// Read published date and parse it.
publishedDate = jsonObj.entry.published.__text;
parsedDate = utils.parseDateTime(publishedDate);
// Set new date/time for message and
// proceed.
msg.created = parsedDate;
return MessageObject.Accept;
}
```
Dump RAW data of each message to RSS Guard's [debug output](Documentation.md#generating-debug-log-file).
```js
function filterMessage() {

View File

@ -22,7 +22,12 @@ void GuiUtilities::setLabelAsNotice(QLabel& label, bool is_warning) {
}
void GuiUtilities::applyDialogProperties(QWidget& widget, const QIcon& icon, const QString& title) {
widget.setWindowFlags(/*Qt::MSWindowsFixedSizeDialogHint | */ Qt::Dialog | Qt::WindowSystemMenuHint | Qt::WindowTitleHint);
#if defined(Q_OS_WIN)
widget.setWindowFlags(Qt::Dialog | Qt::WindowTitleHint);
#else
widget.setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowCloseButtonHint);
#endif
widget.setWindowIcon(icon);
if (!title.isEmpty()) {