Commit c7956975 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

ExternalTools: Dont try to saved files with no url

It results in KIO throwing message boxes
parent a5117f61
......@@ -254,7 +254,7 @@ KateToolRunner *KateExternalToolsPlugin::runnerForTool(const KateExternalTool &t
if (!executingSaveTrigger) {
if (tool.saveMode == KateExternalTool::SaveMode::CurrentDocument) {
// only save if modified, to avoid unnecessary recompiles
if (view->document()->isModified()) {
if (view->document()->isModified() && view->document()->url().isValid()) {
view->document()->save();
}
} else if (tool.saveMode == KateExternalTool::SaveMode::AllDocuments) {
......
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