Ticket #3767: 0002-Make-result-of-External-panelize-restorable.patch

File 0002-Make-result-of-External-panelize-restorable.patch, 1.6 KB (added by mooffie, 7 years ago)
  • src/filemanager/panel.c

    From f10a609457091e7dc267c6e129c2bfcd96c190dc Mon Sep 17 00:00:00 2001
    From: Mooffie <mooffie@gmail.com>
    Date: Sat, 18 Feb 2017 22:04:44 +0200
    Subject: [PATCH 2/4] Make result of "External panelize" restorable (like with
     "Find file").
    
    If the user loses the panelization, he can now choose "Panelize" from the menu
    to restore it.
    
    "Find file" already has this feature. Here we simply extend it to "External
    panelize".
    
    Signed-off-by: Mooffie <mooffie@gmail.com>
    ---
     src/filemanager/panel.c    | 2 +-
     src/filemanager/panelize.c | 2 ++
     2 files changed, 3 insertions(+), 1 deletion(-)
    
    diff --git a/src/filemanager/panel.c b/src/filemanager/panel.c
    index a1e3b73..93f2d6e 100644
    a b hook_t *select_file_hook = NULL; 
    8686/* 
    8787 * 'panelized_panel' is a place where a list of files can be stored. 
    8888 * 
    89  * Right after running "Find file" or "External panelize" (@todo), the contents of 
     89 * Right after running "Find file" or "External panelize", the contents of 
    9090 * the panelized panel gets stored here. This makes it possible for the 
    9191 * user to come back to this listing later if he exits panelization mode. 
    9292 * 
  • src/filemanager/panelize.c

    diff --git a/src/filemanager/panelize.c b/src/filemanager/panelize.c
    index d7fdb60..374e3b5 100644
    a b do_external_panelize (char *command) 
    371371        (void) ret; 
    372372    } 
    373373 
     374    panelize_save_panel (current_panel); 
     375 
    374376    if (pclose (external) < 0) 
    375377        message (D_NORMAL, _("External panelize"), _("Pipe close failed")); 
    376378    close_error_pipe (D_NORMAL, NULL);