[gnome-commander] Use g_file_resolve_relative_path instead of g_file_get_child when working with a device
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Use g_file_resolve_relative_path instead of g_file_get_child when working with a device
- Date: Sat, 30 Apr 2022 16:15:09 +0000 (UTC)
commit 0a989c6d7eb9bdfafc84cc9089473f20034f9074
Author: Uwe Scholz <u scholz83 gmx de>
Date: Sat Apr 30 18:14:09 2022 +0200
Use g_file_resolve_relative_path instead of g_file_get_child when working with a device
src/gnome-cmd-con-device.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gnome-cmd-con-device.cc b/src/gnome-cmd-con-device.cc
index 7641dab0..6996dcbc 100644
--- a/src/gnome-cmd-con-device.cc
+++ b/src/gnome-cmd-con-device.cc
@@ -399,7 +399,7 @@ static GFile *dev_create_gfile (GnomeCmdCon *con, GnomeCmdPath *gnomeCmdPath)
if (gnomeCmdPath)
{
auto gMountGFile = g_mount_get_default_location (dev_con->priv->gMount);
- newGFile = g_file_get_child (gMountGFile, gnomeCmdPath->get_path());
+ newGFile = g_file_resolve_relative_path(gMountGFile, gnomeCmdPath->get_path());
g_object_unref(gMountGFile);
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]