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
32cfd881
Commit
32cfd881
authored
Jul 21, 2022
by
Waqar Ahmed
Browse files
Konsole: Wrap file name into quotes
Filenames can contain spaces
BUG: 456570
parent
b25de6f5
Pipeline
#207387
passed with stage
in 5 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
addons/konsole/kateconsole.cpp
View file @
32cfd881
...
...
@@ -417,10 +417,10 @@ void KateConsole::slotRun()
QFileInfo
file_path
=
QFileInfo
(
u
.
path
());
if
(
KConfigGroup
(
KSharedConfig
::
openConfig
(),
"Konsole"
).
readEntry
(
"RemoveExtension"
,
true
))
{
// append filename without extension (i.e. keep only the basename)
output_str
+=
file_path
.
absoluteFilePath
().
remove
(
file_path
.
suffix
());
output_str
+=
QStringLiteral
(
"
\"
"
)
+
file_path
.
absoluteFilePath
().
remove
(
file_path
.
suffix
())
+
QStringLiteral
(
"
\"
"
)
;
}
else
{
// append filename to the terminal
output_str
+=
file_path
.
absoluteFilePath
();
output_str
+=
QStringLiteral
(
"
\"
"
)
+
file_path
.
absoluteFilePath
()
+
QStringLiteral
(
"
\"
"
)
;
}
if
(
KMessageBox
::
Continue
...
...
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