Commit b80f746f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix 452822: Please add a way to prevent dialogs/notifications while saving an enclosure

BUG: 452822
FIXED-IN: 5.21.0
parent 002a66dd
Pipeline #168180 passed with stage
in 1 minute and 27 seconds
......@@ -8,7 +8,7 @@
<x>0</x>
<y>0</y>
<width>362</width>
<height>378</height>
<height>446</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_4" stretch="0,0,0,1">
......@@ -78,6 +78,13 @@
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="kcfg_DisableSaveAsNotification">
<property name="text">
<string>Disable save as finished notification</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="kcfg_UseIntervalFetch">
<property name="text">
......
......@@ -189,6 +189,9 @@
<entry key="Disable Introduction" type="Bool" >
<default>false</default>
</entry>
<entry key="Disable Save As Notification" type="Bool" >
<default>false</default>
</entry>
</group>
<group name="Browser" >
<entry key="EnableJavascript" type="Bool">
......
......@@ -198,6 +198,9 @@ void ArticleViewerWebEngine::slotSaveLinkAs()
job->addMetaData(QStringLiteral("MaxCacheSize"), QStringLiteral("0")); // Don't store in http cache.
job->addMetaData(QStringLiteral("cache"), QStringLiteral("cache")); // Use entry from cache if available.
KJobWidgets::setWindow(job, this);
if (Settings::self()->disableSaveAsNotification()) {
job->setFinishedNotificationHidden(true);
}
job->uiDelegate()->setAutoErrorHandlingEnabled(true);
}
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment