mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
DownloadManager: Always ask where to save with Save Page action
This commit is contained in:
parent
5240d70c51
commit
880b0eb5b1
@ -258,9 +258,11 @@ void DownloadManager::download(QWebEngineDownloadItem *downloadItem)
|
||||
// Filename may have been percent encoded and actually containing path
|
||||
fileName = QFileInfo(fileName).fileName();
|
||||
|
||||
const bool forceAsk = downloadItem->savePageFormat() != QWebEngineDownloadItem::UnknownSaveFormat;
|
||||
|
||||
if (m_useExternalManager) {
|
||||
startExternalManager(downloadItem->url());
|
||||
} else if (m_downloadPath.isEmpty()) {
|
||||
} else if (forceAsk || m_downloadPath.isEmpty()) {
|
||||
enum Result { Open = 1, Save = 2, ExternalManager = 3, SavePage = 4, Unknown = 0 };
|
||||
Result result = Unknown;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user