[gnome-commander: 154/170] Fix for unset dir variable




commit f4d869c46d01cf6580f9cb3c2d6960ef2fa6bbe6
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Sun Dec 20 17:05:52 2020 +0100

    Fix for unset dir variable

 src/gnome-cmd-con.h  | 4 ++--
 src/gnome-cmd-dir.cc | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gnome-cmd-con.h b/src/gnome-cmd-con.h
index fadca18c..c6a26e2a 100644
--- a/src/gnome-cmd-con.h
+++ b/src/gnome-cmd-con.h
@@ -91,10 +91,10 @@ struct GnomeCmdCon
     gchar               *open_msg;
     GnomeCmdPath        *base_path;
     GnomeVFSFileInfo    *base_info;
-    GString             *root_path;             // root path of the connection, used for calculation of 
relative paths
+    GString             *root_path;             // Root path of the connection, used for calculation of 
relative paths
     gboolean            should_remember_dir;
     gboolean            needs_open_visprog;
-    gboolean            needs_list_visprog;
+    gboolean            needs_list_visprog;     // Defines if a graphical progress bar should be drawn when 
opening a folder
     gboolean            can_show_free_space;
     State               state;
     gboolean            is_local;
diff --git a/src/gnome-cmd-dir.cc b/src/gnome-cmd-dir.cc
index 9f3ee0b9..833cfaf1 100644
--- a/src/gnome-cmd-dir.cc
+++ b/src/gnome-cmd-dir.cc
@@ -321,10 +321,10 @@ GnomeCmdDir *gnome_cmd_dir_new (GnomeCmdCon *con, GnomeCmdPath *path)
     if (gnomeVFSResult == GNOME_VFS_OK)
     {
         dir = static_cast<GnomeCmdDir*> (g_object_new (GNOME_CMD_TYPE_DIR, nullptr));
+        gnome_cmd_dir_set_path (dir, path);
         gnome_cmd_file_setup (GNOME_CMD_FILE (dir), gnomeVFSFileInfo, nullptr);
 
         dir->priv->con = con;
-        gnome_cmd_dir_set_path (dir, path);
         dir->priv->needs_mtime_update = FALSE;
 
         gnome_cmd_con_add_to_cache (con, dir);


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