Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
c7956975
Commit
c7956975
authored
Aug 11, 2022
by
Waqar Ahmed
Browse files
ExternalTools: Dont try to saved files with no url
It results in KIO throwing message boxes
parent
a5117f61
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/externaltools/externaltoolsplugin.cpp
View file @
c7956975
...
...
@@ -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
)
{
...
...
Waqar Ahmed
@waqar
mentioned in commit
aaa1bdbe
·
Aug 12, 2022
mentioned in commit
aaa1bdbe
mentioned in commit aaa1bdbe6604e54dc453a0d91870c40771af1e28
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment