mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 02:52:13 +08:00
28 lines
893 B
Diff
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) {
|