[gnome-commander] Fixed problem #638954 (search path is wrong for devices)



commit b390f4b006892a6e35aa5d5f63828138dbe954e0
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Sat Jan 8 00:53:26 2011 +0100

    Fixed problem #638954 (search path is wrong for devices)

 NEWS                           |    1 +
 doc/C/gnome-commander.xml      |    3 +++
 src/gnome-cmd-search-dialog.cc |    2 +-
 3 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/NEWS b/NEWS
index e08546a..19c7a06 100644
--- a/NEWS
+++ b/NEWS
@@ -38,6 +38,7 @@ Bug fixes:
  * Fixed problem #448941 (numeric keypad arrows don't work in the main window)
  * Fixed problem #620275 (add menu item to copy full path and file name to clipboard)
  * Fixed problem #637501 (advrename: metatag popup menu shows wrong items)
+ * Fixed problem #638954 (search path is wrong for devices)
  * Fixed problem with toggling path/basename/filename selections in copy/move dialogs
  * Updated translations: de
 
diff --git a/doc/C/gnome-commander.xml b/doc/C/gnome-commander.xml
index 03f8de6..6e566b7 100644
--- a/doc/C/gnome-commander.xml
+++ b/doc/C/gnome-commander.xml
@@ -7621,6 +7621,9 @@
                             <para>Fixed problem #637501 (advrename: metatag popup menu shows wrong items)</para>
                         </listitem>
                         <listitem>
+                            <para>Fixed problem #638954 (search path is wrong for devices)</para>
+                        </listitem>
+                        <listitem>
                             <para>Fixed problem with toggling path/basename/filename selections in copy/move dialogs</para>
                         </listitem>
                         <listitem>
diff --git a/src/gnome-cmd-search-dialog.cc b/src/gnome-cmd-search-dialog.cc
index 9daa7e5..79d4b04 100644
--- a/src/gnome-cmd-search-dialog.cc
+++ b/src/gnome-cmd-search-dialog.cc
@@ -974,7 +974,7 @@ GtkWidget *gnome_cmd_search_dialog_new (GnomeCmdDir *default_dir)
     gchar *new_path;
     GnomeCmdSearchDialog *dialog = (GnomeCmdSearchDialog *) gtk_type_new (gnome_cmd_search_dialog_get_type ());
 
-    gchar *path = GNOME_CMD_FILE (default_dir)->get_path();
+    gchar *path = gnome_cmd_dir_is_local (default_dir) ? GNOME_CMD_FILE (default_dir)->get_real_path() : GNOME_CMD_FILE (default_dir)->get_path();
     if (path[strlen(path)-1] != '/')
     {
         new_path = g_strdup_printf ("%s/", path);



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