[gnome-commander/gcmd-1-2-8] Fix for bug introduced in commit ad68b01d5a19a33cfbc97f222e3deba6cfcab152 (fixed problem #638954 ...



commit b9750b8dc05aae987557decd711b90834cd8b7a5
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Sat Jan 15 22:29:47 2011 +0100

    Fix for bug introduced in commit ad68b01d5a19a33cfbc97f222e3deba6cfcab152 (fixed problem #638954 ...)

 src/gnome-cmd-search-dialog.cc |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-cmd-search-dialog.cc b/src/gnome-cmd-search-dialog.cc
index 265352c..f00406a 100644
--- a/src/gnome-cmd-search-dialog.cc
+++ b/src/gnome-cmd-search-dialog.cc
@@ -975,6 +975,8 @@ GtkWidget *gnome_cmd_search_dialog_new (GnomeCmdDir *default_dir)
     GnomeCmdSearchDialog *dialog = (GnomeCmdSearchDialog *) gtk_type_new (gnome_cmd_search_dialog_get_type ());
 
     gchar *path = gnome_cmd_dir_is_local (default_dir) ? gnome_cmd_file_get_real_path (GNOME_CMD_FILE (default_dir)) : gnome_cmd_file_get_path (GNOME_CMD_FILE (default_dir));
+
+    if (path[strlen(path)-1] != '/')
     {
         new_path = g_strdup_printf ("%s/", path);
         g_free (path);



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