desktop/freecad/remove-qtwebkit.patch
2018-04-11 00:07:25 +01:00

28 lines
893 B
Diff

diff --git a/src/Gui/DownloadManager.cpp b/src/Gui/DownloadManager.cpp
index 98b767d34..31defb46d 100644
--- a/src/Gui/DownloadManager.cpp
+++ b/src/Gui/DownloadManager.cpp
@@ -33,9 +33,6 @@
#include <QMetaEnum>
#include <QSettings>
#include <QFileIconProvider>
-#if QT_VERSION < 0x050000
-#include <QWebSettings>
-#endif
#if QT_VERSION >= 0x050000
#include <QUrlQuery>
#endif
@@ -217,12 +214,6 @@ void DownloadManager::updateRow()
ui->downloadsView->setRowHeight(row, item->minimumSizeHint().height());
bool remove = false;
-#if QT_VERSION < 0x050000
- QWebSettings *globalSettings = QWebSettings::globalSettings();
- if (!item->downloading()
- && globalSettings->testAttribute(QWebSettings::PrivateBrowsingEnabled))
- remove = true;
-#endif
if (item->downloadedSuccessfully()
&& removePolicy() == DownloadManager::SuccessFullDownload) {