[gnome-commander] tabs lock: start a new tab for "view.in_*_pane" user actions



commit 3774d80cf18a2116cd74d49d35d2d8233377384f
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Sun Aug 14 00:11:05 2011 +0200

    tabs lock: start a new tab for "view.in_*_pane" user actions

 src/gnome-cmd-main-win.cc |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-cmd-main-win.cc b/src/gnome-cmd-main-win.cc
index 4adcb05..f2ce923 100644
--- a/src/gnome-cmd-main-win.cc
+++ b/src/gnome-cmd-main-win.cc
@@ -1118,7 +1118,10 @@ void GnomeCmdMainWin::set_fs_directory_to_opposite(FileSelectorID fsID)
             dir = GNOME_CMD_IS_DIR (file) ? GNOME_CMD_DIR (file) : gnome_cmd_dir_new_from_info (file->info, dir);
     }
 
-    fs->file_list()->set_connection(other->get_connection(), dir);
+    if (fs->file_list()->locked)
+        fs->new_tab(dir);
+    else
+        fs->file_list()->set_connection(other->get_connection(), dir);
 
     other->set_active(!fs_is_active);
     fs->set_active(fs_is_active);



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