diff options
Diffstat (limited to 'examples/widgets/browser/downloadmanager.cpp')
-rw-r--r-- | examples/widgets/browser/downloadmanager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/widgets/browser/downloadmanager.cpp b/examples/widgets/browser/downloadmanager.cpp index 828e325b9..6f4c6c8ad 100644 --- a/examples/widgets/browser/downloadmanager.cpp +++ b/examples/widgets/browser/downloadmanager.cpp @@ -429,10 +429,12 @@ void DownloadManager::updateRow() downloadsView->setRowHeight(row, item->minimumSizeHint().height()); bool remove = false; +#if defined(QWEBENGINESETTINGS) QWebEngineSettings *globalSettings = QWebEngineSettings::globalSettings(); if (!item->downloading() && globalSettings->testAttribute(QWebEngineSettings::PrivateBrowsingEnabled)) remove = true; +#endif if (item->downloadedSuccessfully() && removePolicy() == DownloadManager::SuccessFullDownload) { |