[gnome-commander] tabs: set dir AFTER making the new tab active



commit a1cfdcb4853eb4cae5731496b2d75cef83207d89
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Fri Jun 18 08:02:34 2010 +0200

    tabs: set dir AFTER making the new tab active

 src/gnome-cmd-file-selector.cc |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gnome-cmd-file-selector.cc b/src/gnome-cmd-file-selector.cc
index 23f9e1a..3d272ad 100644
--- a/src/gnome-cmd-file-selector.cc
+++ b/src/gnome-cmd-file-selector.cc
@@ -1322,15 +1322,15 @@ GtkWidget *GnomeCmdFileSelector::new_tab(GnomeCmdDir *dir, gboolean activate)
     g_signal_connect (list, "dir-changed", G_CALLBACK (on_list_dir_changed), this);
     g_signal_connect (list, "files-changed", G_CALLBACK (on_list_files_changed), this);
 
-    if (dir)
-        list->set_connection(gnome_cmd_dir_get_connection (dir), dir);
-
     if (activate)
     {
         notebook->set_current_page(n);
         gtk_widget_grab_focus (*list);
     }
 
+    if (dir)
+        list->set_connection(gnome_cmd_dir_get_connection (dir), dir);
+
     g_signal_connect (list, "file-clicked", G_CALLBACK (on_list_file_clicked), NULL);
     g_signal_connect (list, "file-released", G_CALLBACK (on_list_file_released), NULL);
     g_signal_connect (list, "list-clicked", G_CALLBACK (on_list_list_clicked), this);



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