[gnome-commander] Retrieve a gFile through the new method when checking for a child of a given GnomeCmdDir
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Retrieve a gFile through the new method when checking for a child of a given GnomeCmdDir
- Date: Fri, 29 Oct 2021 21:19:44 +0000 (UTC)
commit 77c5de4e8a47b1eefeb47fb7e35c0ab085d5622c
Author: Uwe Scholz <u scholz83 gmx de>
Date: Fri Oct 29 23:13:35 2021 +0200
Retrieve a gFile through the new method when checking for a child of a given GnomeCmdDir
src/gnome-cmd-dir.cc | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/src/gnome-cmd-dir.cc b/src/gnome-cmd-dir.cc
index e7e80e4f..d03b9f7c 100644
--- a/src/gnome-cmd-dir.cc
+++ b/src/gnome-cmd-dir.cc
@@ -681,12 +681,20 @@ GFile *gnome_cmd_dir_get_child_gfile (GnomeCmdDir *dir, const gchar *filename)
{
g_return_val_if_fail (GNOME_CMD_IS_DIR (dir), nullptr);
+ GFile *gFile = gnome_cmd_dir_get_gfile_for_con_and_filename(dir, filename);
+
+ if (gFile)
+ {
+ return gFile;
+ }
+
GnomeCmdPath *path = dir->priv->path->get_child(filename);
if (!path)
{
return nullptr;
}
- GFile *gFile = gnome_cmd_con_create_gfile (dir->priv->con, path);
+
+ gFile = gnome_cmd_con_create_gfile (dir->priv->con, path);
delete path;
return gFile;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]