mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
DownloadManager: Don't try to close the single tab in tabbar
This commit is contained in:
parent
df2fa561d5
commit
899622e623
@ -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
|
// Attempt to close empty tab that was opened only for loading the download url
|
||||||
auto testWebView = [](TabbedWebView *view, const QUrl &url) {
|
auto testWebView = [](TabbedWebView *view, const QUrl &url) {
|
||||||
if (view->browserWindow()->tabWidget()->tabBar()->normalTabsCount() < 1) {
|
if (view->browserWindow()->tabWidget()->tabBar()->normalTabsCount() < 2) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
WebPage *page = view->page();
|
WebPage *page = view->page();
|
||||||
|
Loading…
Reference in New Issue
Block a user