[gnome-commander] get_uri: use GIO to get the basename of a file



commit d020645be5b9185b431195343e4ffe1012a83202
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Sun May 16 17:06:48 2021 +0200

    get_uri: use GIO to get the basename of a file

 src/gnome-cmd-file.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gnome-cmd-file.cc b/src/gnome-cmd-file.cc
index 2544b301..8003c26e 100644
--- a/src/gnome-cmd-file.cc
+++ b/src/gnome-cmd-file.cc
@@ -705,7 +705,7 @@ GnomeVFSURI *GnomeCmdFile::get_uri(const gchar *name)
             g_assert ("Non directory file without owning directory");
     }
 
-    return gnome_cmd_dir_get_child_uri (::get_parent_dir (this), name ? name : info->name);
+    return gnome_cmd_dir_get_child_uri (::get_parent_dir (this), name ? name : g_file_get_basename(gFile));
 }
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]