[gnome-commander] GnomeCmdData: save directory history on exit



commit 53e48d288762e60122cfb6998d2ac3fb3d5b4477
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Sun Oct 2 19:30:47 2011 +0200

    GnomeCmdData: save directory history on exit

 src/gnome-cmd-data.cc |    3 +++
 src/gnome-cmd-data.h  |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index 7b09fff..4826127 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -883,6 +883,7 @@ GnomeCmdData::GnomeCmdData(): search_defaults(selections)
 
     save_dirs_on_exit = FALSE;
     save_tabs_on_exit = TRUE;
+    save_dir_history_on_exit = TRUE;
 
     always_show_tabs = FALSE;
     tab_lock_indicator = TAB_LOCK_ICON;
@@ -1181,6 +1182,7 @@ void GnomeCmdData::load()
 
     save_dirs_on_exit = gnome_cmd_data_get_bool ("/options/save_dirs_on_exit", TRUE);
     save_tabs_on_exit = gnome_cmd_data_get_bool ("/options/save_tabs_on_exit", TRUE);
+    save_dir_history_on_exit = gnome_cmd_data_get_bool ("/options/save_dir_history_on_exit", TRUE);
 
     always_show_tabs = gnome_cmd_data_get_bool ("/options/always_show_tabs", FALSE);
     tab_lock_indicator = (TabLockIndicator) gnome_cmd_data_get_int ("/options/tab_lock_indicator", TAB_LOCK_ICON);
@@ -1601,6 +1603,7 @@ void GnomeCmdData::save()
 
     gnome_cmd_data_set_bool ("/options/save_dirs_on_exit", save_dirs_on_exit);
     gnome_cmd_data_set_bool ("/options/save_tabs_on_exit", save_tabs_on_exit);
+    gnome_cmd_data_set_bool ("/options/save_dir_history_on_exit", save_dir_history_on_exit);
 
     gnome_cmd_data_set_bool ("/options/always_show_tabs", always_show_tabs);
     gnome_cmd_data_set_int ("/options/tab_lock_indicator", (int) tab_lock_indicator);
diff --git a/src/gnome-cmd-data.h b/src/gnome-cmd-data.h
index cf4bf58..2440faa 100644
--- a/src/gnome-cmd-data.h
+++ b/src/gnome-cmd-data.h
@@ -248,6 +248,7 @@ struct GnomeCmdData
 
     gboolean                     save_dirs_on_exit;
     gboolean                     save_tabs_on_exit;
+    gboolean                     save_dir_history_on_exit;
 
     gboolean                     always_show_tabs;
     int                          tab_lock_indicator;



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