diff --git a/src/TerminalDisplay.cpp b/src/TerminalDisplay.cpp --- a/src/TerminalDisplay.cpp +++ b/src/TerminalDisplay.cpp @@ -3686,13 +3686,7 @@ } QUrl url = job->mostLocalUrl(); - QString urlText; - - if (url.isLocalFile()) { - urlText = url.path(); - } else { - urlText = url.url(); - } + QString urlText = url.isLocalFile() ? url.path() : url.url(); // in future it may be useful to be able to insert file names with drag-and-drop // without quoting them (this only affects paths with spaces in)