Commit 32cfd881 authored by Waqar Ahmed's avatar 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
......@@ -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