Commit 4a10f068 authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Konsole: Wrap file name into quotes

Filenames can contain spaces

BUG: 456570
parent f7b35107
Pipeline #207532 canceled with stage
in 56 seconds
......@@ -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
......
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