try to fix erratic modals behavior
This commit is contained in:
parent
ade6268eb1
commit
719071a9e8
2 changed files with 25 additions and 1 deletions
|
@ -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).
|
Dump RAW data of each message to RSS Guard's [debug output](Documentation.md#generating-debug-log-file).
|
||||||
```js
|
```js
|
||||||
function filterMessage() {
|
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) {
|
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);
|
widget.setWindowIcon(icon);
|
||||||
|
|
||||||
if (!title.isEmpty()) {
|
if (!title.isEmpty()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue