[gnome-commander] search: fix for problem with -maxdepth param



commit 58bf5d48d9a25d1aa9a5092b718e2abe46258356
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Wed May 25 19:27:28 2011 +0200

    search: fix for problem with -maxdepth param

 src/dialogs/gnome-cmd-search-dialog.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/dialogs/gnome-cmd-search-dialog.cc b/src/dialogs/gnome-cmd-search-dialog.cc
index 90eca7a..8e58b2f 100755
--- a/src/dialogs/gnome-cmd-search-dialog.cc
+++ b/src/dialogs/gnome-cmd-search-dialog.cc
@@ -557,7 +557,7 @@ static gchar *build_search_command (SearchData *data)
     g_string_append (command, look_in_folder_quoted);
 
     if (data->max_depth!=-1)
-        g_string_append_printf (command, " -maxdepth %i", data->max_depth);
+        g_string_append_printf (command, " -maxdepth %i", data->max_depth+1);
 
     switch (data->name_filter_type)
     {



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