From f89891d81b38884fd05faa5b35aa4b2178c17617 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Sun, 29 Apr 2007 11:05:57 +0000 Subject: [PATCH] r5015: When run with -S, restart with -S too (rather than expanding the current panels and pinboard on the command-line). --- ROX-Filer/src/session.c | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/ROX-Filer/src/session.c b/ROX-Filer/src/session.c index 42449926..3f5a9af2 100644 --- a/ROX-Filer/src/session.c +++ b/ROX-Filer/src/session.c @@ -73,19 +73,26 @@ static void save_state(SmClient *client) g_ptr_array_add(restart_cmd, filer_window->sym_path); } - for(i = 0; i < PANEL_NUMBER_OF_SIDES; i++) + if (session_auto_respawn) { - panel = current_panel[i]; - if(!panel) - continue; - g_ptr_array_add(restart_cmd, types[panel->side]); - g_ptr_array_add(restart_cmd, panel->name); + for(i = 0; i < PANEL_NUMBER_OF_SIDES; i++) + { + panel = current_panel[i]; + if(!panel) + continue; + g_ptr_array_add(restart_cmd, types[panel->side]); + g_ptr_array_add(restart_cmd, panel->name); + } + + if (pinboard) + { + g_ptr_array_add(restart_cmd, "-p"); + g_ptr_array_add(restart_cmd, (gchar *) pinboard_get_name()); + } } - - if (pinboard) + else { - g_ptr_array_add(restart_cmd, "-p"); - g_ptr_array_add(restart_cmd, (gchar *) pinboard_get_name()); + g_ptr_array_add(restart_cmd, "-S"); } sc_set_list_of_array_prop(client, SmRestartCommand, -- 2.11.4.GIT