Commit 0e15b229 authored by Stefano Crocco's avatar Stefano Crocco Committed by David Faure
Browse files

Don't ask to save local files

parent 2eb7de66
......@@ -159,9 +159,10 @@ void UrlLoader::decideEmbedOrSave()
//Ask whether to save or embed, except in the following cases:
//- it's a web page: always embed
//- it's a local file: always embed
//- there's no part to open it: always save
if (m_service && m_service->isValid()) {
if (embedWithoutAskingToSave(m_mimeType)) {
if (embedWithoutAskingToSave(m_mimeType) || m_url.isLocalFile()) {
m_action = OpenUrlAction::Embed;
} else {
m_action = askSaveOrOpen(OpenEmbedMode::Embed).first;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment