[gnome-commander/gcmd-1-2-8] Fixed problem #618214 (crash when cancel a search)



commit 7c209c098ac808f26f91c93be37bae5fdf90afad
Author: Cristian Buzduga <cristianbzdg gmail com>
Date:   Thu May 12 22:15:28 2011 +0200

    Fixed problem #618214 (crash when cancel a search)

 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 fe003a9..9b850b5 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ gnome-commander 1.2.8.12
 ---------------
 
 Bug fixes:
+ * Fixed problem #618214 (crash when cancel a search)
  * Fixed problem #640387 (yet another fix for deprecated python modules: md5, sha1)
  * Fixed problem #649375 (bookmarks not updated for newly added ones)
 
diff --git a/doc/C/gnome-commander.xml b/doc/C/gnome-commander.xml
index 57b9730..bcabfa8 100644
--- a/doc/C/gnome-commander.xml
+++ b/doc/C/gnome-commander.xml
@@ -6089,6 +6089,9 @@
                 <para>
                     <itemizedlist>
                         <listitem>
+                            <para>Fixed problem #618214 (crash when cancel a search)</para>
+                        </listitem>
+                        <listitem>
                             <para>Fixed problem #640387 (yet another fix for deprecated python modules: md5, sha1)</para>
                         </listitem>
                         <listitem>
diff --git a/src/gnome-cmd-search-dialog.cc b/src/gnome-cmd-search-dialog.cc
index cb666fc..e51fc4b 100644
--- a/src/gnome-cmd-search-dialog.cc
+++ b/src/gnome-cmd-search-dialog.cc
@@ -369,7 +369,6 @@ static gpointer perform_search_operation (SearchData *data)
     data->dir = NULL;
 
     data->search_done = TRUE;
-    gtk_widget_set_sensitive (data->dialog->priv->goto_button, TRUE);
 
     return NULL;
 }
@@ -421,6 +420,7 @@ static gboolean update_search_status_widgets (SearchData *data)
             set_statusmsg (data, msg);
             g_free (msg);
 
+            gtk_widget_set_sensitive (data->dialog->priv->goto_button, data->matches > 0);
             gtk_widget_set_sensitive (data->dialog->priv->search_button, TRUE);
             gtk_widget_set_sensitive (data->dialog->priv->stop_button, FALSE);
 



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