[gnome-commander/gcmd-1-2-8] Fixed problem #612685 (crashes when double-clicking on a bookmark)



commit c38193ff60f065fc2da1a2590933a7535c7c6f2a
Author: Ionut Anghelcovici <anghelcovici gmail com>
Date:   Fri Mar 12 20:16:09 2010 +0100

    Fixed problem #612685 (crashes when double-clicking on a bookmark)

 NEWS                             |    1 +
 doc/C/gnome-commander.xml        |    3 +++
 src/gnome-cmd-bookmark-dialog.cc |    5 ++---
 3 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/NEWS b/NEWS
index 17b76d3..d774749 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@ gnome-commander 1.2.8.6
 Bug fixes:
  * Fixed problem #602795 (file content search)
  * Fixed problem #609912 (build error with --as-needed)
+ * Fixed problem #612685 (crashes when double-clicking on a bookmark)
 
 New features:
  * New translations: ko
diff --git a/doc/C/gnome-commander.xml b/doc/C/gnome-commander.xml
index d576453..80899bb 100644
--- a/doc/C/gnome-commander.xml
+++ b/doc/C/gnome-commander.xml
@@ -6027,6 +6027,9 @@
                         <listitem>
                             <para>Fixed problem #609912 (build error with --as-needed)</para>
                         </listitem>
+                        <listitem>
+                            <para>Fixed problem #612685 (crashes when double-clicking on a bookmark)</para>
+                        </listitem>
                     </itemizedlist>
                 </para>
                 <para>New features:</para>
diff --git a/src/gnome-cmd-bookmark-dialog.cc b/src/gnome-cmd-bookmark-dialog.cc
index 01cd823..d7cd27a 100644
--- a/src/gnome-cmd-bookmark-dialog.cc
+++ b/src/gnome-cmd-bookmark-dialog.cc
@@ -335,7 +335,7 @@ static gboolean on_dialog_keypress (GnomeCmdBookmarkDialog *dialog, GdkEventKey
 
 
 static void on_dir_selected (GtkCList *list, gint row, gint column,
-                              GdkEventButton *event, GnomeCmdBookmarkDialog *dialog)
+                             GdkEventButton *event, GnomeCmdBookmarkDialog *dialog)
 {
     if (event && event->type == GDK_2BUTTON_PRESS)
         on_dir_goto (NULL, dialog);
@@ -345,9 +345,8 @@ static void on_dir_selected (GtkCList *list, gint row, gint column,
         gtk_widget_set_sensitive (dialog->priv->remove_btn, TRUE);
         gtk_widget_set_sensitive (dialog->priv->edit_btn, TRUE);
         gtk_widget_set_sensitive (dialog->priv->goto_btn, TRUE);
+        update_move_buttons (dialog, row);
     }
-
-    update_move_buttons (dialog, row);
 }
 
 



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