FreeCAD/remove-qtwebkit.patch
Adrian Schröter f5f14426f5 Accepting request 561742 from home:wolfi323:branches:science
- Add remove-qtwebkit.patch and remove-webgui.patch (taken from
  Arch Linux) to fix build without QtWebKit
- Build without QtWebKit on Tumbleweed and SLE/Leap 15 as
  libQtWebKit4 is about to be dropped (boo#1070901)

OBS-URL: https://build.opensuse.org/request/show/561742
OBS-URL: https://build.opensuse.org/package/show/science/FreeCAD?expand=0&rev=18
2018-01-05 08:06:52 +00:00

24 lines
906 B
Diff

diff -Naur FreeCAD-0.16.orig/src/Gui/DownloadManager.cpp FreeCAD-0.16/src/Gui/DownloadManager.cpp
--- FreeCAD-0.16.orig/src/Gui/DownloadManager.cpp 2016-04-07 03:39:34.000000000 +0200
+++ FreeCAD-0.16/src/Gui/DownloadManager.cpp 2017-02-07 17:05:51.753657498 +0100
@@ -33,7 +33,6 @@
#include <QMetaEnum>
#include <QSettings>
#include <QFileIconProvider>
-#include <QWebSettings>
#include "DownloadItem.h"
#include "DownloadManager.h"
@@ -224,11 +223,6 @@
ui->downloadsView->setRowHeight(row, item->minimumSizeHint().height());
bool remove = false;
- QWebSettings *globalSettings = QWebSettings::globalSettings();
- if (!item->downloading()
- && globalSettings->testAttribute(QWebSettings::PrivateBrowsingEnabled))
- remove = true;
-
if (item->downloadedSuccessfully()
&& removePolicy() == DownloadManager::SuccessFullDownload) {
remove = true;