mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-01 02:48:05 +01:00
try to fix erratic modals behavior
This commit is contained in:
parent
ade6268eb1
commit
719071a9e8
@ -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() {
|
||||
|
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user