[gnome-commander] Use propper function for getting quoted name
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Use propper function for getting quoted name
- Date: Tue, 9 Mar 2021 22:22:04 +0000 (UTC)
commit 8c0d00efbe66c34400ef9bbd7d900c94f4d8a307
Author: Uwe Scholz <u scholz83 gmx de>
Date: Tue Mar 9 23:21:49 2021 +0100
Use propper function for getting quoted name
src/gnome-cmd-file-popmenu.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-cmd-file-popmenu.cc b/src/gnome-cmd-file-popmenu.cc
index 597a82a4..af9942fe 100644
--- a/src/gnome-cmd-file-popmenu.cc
+++ b/src/gnome-cmd-file-popmenu.cc
@@ -324,7 +324,7 @@ static void on_execute_script (GtkMenuItem *menuItem, ScriptData *scriptData)
{
auto gnomeCmdFile = static_cast<GnomeCmdFile*> (files->data);
string command (scriptData->path);
- command.append (" ").append (quotationMarks).append (gnomeCmdFile->get_name ()).append
(quotationMarks);
+ command.append (" ").append(gnomeCmdFile->get_quoted_name());
dirName = gnomeCmdFile->get_dirname (); // must be g_free'd
run_command_indir (command.c_str (), dirName, scriptData->inTerminal);
@@ -339,7 +339,7 @@ static void on_execute_script (GtkMenuItem *menuItem, ScriptData *scriptData)
for (auto files = scriptData->files; files; files = files->next)
{
auto gnomeCmdFile = static_cast<GnomeCmdFile*> (files->data);
- commandString.append (quotationMarks).append(gnomeCmdFile->get_name ()).append
(quotationMarks).append (" ");
+ commandString.append(gnomeCmdFile->get_quoted_name()).append(" ");
}
dirName = static_cast<GnomeCmdFile*> (scriptData->files->data)->get_dirname (); // must be g_free'd
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]