mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-13 10:32:11 +01:00
Merge branch 'v2.0'
This commit is contained in:
commit
2ff66ae0f5
|
@ -215,7 +215,9 @@ void DownloadManager::download(QWebEngineDownloadItem *downloadItem)
|
||||||
QString fileName = QFileInfo(downloadItem->path()).fileName();
|
QString fileName = QFileInfo(downloadItem->path()).fileName();
|
||||||
fileName = QUrl::fromPercentEncoding(fileName.toUtf8());
|
fileName = QUrl::fromPercentEncoding(fileName.toUtf8());
|
||||||
|
|
||||||
if (m_downloadPath.isEmpty()) {
|
if (m_useExternalManager) {
|
||||||
|
startExternalManager(downloadItem->url());
|
||||||
|
} else if (m_downloadPath.isEmpty()) {
|
||||||
// Ask what to do
|
// Ask what to do
|
||||||
DownloadOptionsDialog optionsDialog(fileName, downloadItem->url(), mApp->activeWindow());
|
DownloadOptionsDialog optionsDialog(fileName, downloadItem->url(), mApp->activeWindow());
|
||||||
optionsDialog.showExternalManagerOption(m_useExternalManager);
|
optionsDialog.showExternalManagerOption(m_useExternalManager);
|
||||||
|
@ -245,8 +247,6 @@ void DownloadManager::download(QWebEngineDownloadItem *downloadItem)
|
||||||
downloadItem->cancel();
|
downloadItem->cancel();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else if (m_useExternalManager) {
|
|
||||||
startExternalManager(downloadItem->url());
|
|
||||||
} else {
|
} else {
|
||||||
downloadPath = QzTools::ensureUniqueFilename(m_downloadPath + QL1C('/') + fileName);
|
downloadPath = QzTools::ensureUniqueFilename(m_downloadPath + QL1C('/') + fileName);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user