From b6fa82aa8ebe2c51e825f44f2d26eec0dd14fc60 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Sat, 31 Mar 2018 17:16:55 +0200 Subject: [PATCH] DownloadManager: Don't try to close not restored tabs BUG: 392565 FIXED-IN: 3.0.1 --- src/lib/downloads/downloadmanager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/downloads/downloadmanager.cpp b/src/lib/downloads/downloadmanager.cpp index e27b78818..5e2859008 100644 --- a/src/lib/downloads/downloadmanager.cpp +++ b/src/lib/downloads/downloadmanager.cpp @@ -122,6 +122,9 @@ void DownloadManager::closeDownloadTab(const QUrl &url) const { // Attempt to close empty tab that was opened only for loading the download url auto testWebView = [](TabbedWebView *view, const QUrl &url) { + if (!view->webTab()->isRestored()) { + return false; + } if (view->browserWindow()->tabWidget()->tabBar()->normalTabsCount() < 2) { return false; }