1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

DownloadManager: Don't try to close the single tab in tabbar

This commit is contained in:
David Rosca 2017-01-26 20:48:29 +01:00
parent df2fa561d5
commit 899622e623

View File

@ -121,7 +121,7 @@ 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->browserWindow()->tabWidget()->tabBar()->normalTabsCount() < 1) {
if (view->browserWindow()->tabWidget()->tabBar()->normalTabsCount() < 2) {
return false;
}
WebPage *page = view->page();