summaryrefslogtreecommitdiff
path: root/grc/gui/ActionHandler.py
diff options
context:
space:
mode:
authorSeth Hitefield <sdh11@vt.edu>2015-12-07 18:17:10 -0500
committerSeth Hitefield <sdh11@vt.edu>2015-12-07 18:17:10 -0500
commitbb814b4d4b7a828eba96484c619b36d6f6793a8f (patch)
tree66984d51fdeb831461539e0abe98e358702e2c5e /grc/gui/ActionHandler.py
parentef1493630eeab5d46f53bf3e015411f1f7b25866 (diff)
grc: Fixed issue where the recent file list includes files that do not exist.
Diffstat (limited to 'grc/gui/ActionHandler.py')
-rw-r--r--grc/gui/ActionHandler.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/grc/gui/ActionHandler.py b/grc/gui/ActionHandler.py
index ebf701553d..b9135418a3 100644
--- a/grc/gui/ActionHandler.py
+++ b/grc/gui/ActionHandler.py
@@ -120,7 +120,7 @@ class ActionHandler:
Actions.XML_PARSER_ERRORS_DISPLAY.set_sensitive(True)
if not self.init_file_paths:
- self.init_file_paths = filter(os.path.exists, Preferences.files_open())
+ self.init_file_paths = filter(os.path.exists, Preferences.get_open_files())
if not self.init_file_paths: self.init_file_paths = ['']
for file_path in self.init_file_paths:
if file_path: self.main_window.new_page(file_path) #load pages from file paths
@@ -484,7 +484,7 @@ class ActionHandler:
if file_paths: #open a new page for each file, show only the first
for i,file_path in enumerate(file_paths):
self.main_window.new_page(file_path, show=(i==0))
- Preferences.files_recent_add(file_path)
+ Preferences.add_recent_file(file_path)
self.main_window.tool_bar.refresh_submenus()
self.main_window.menu_bar.refresh_submenus()
@@ -517,7 +517,7 @@ class ActionHandler:
if file_path is not None:
self.get_page().set_file_path(file_path)
Actions.FLOW_GRAPH_SAVE()
- Preferences.files_recent_add(file_path)
+ Preferences.add_recent_file(file_path)
self.main_window.tool_bar.refresh_submenus()
self.main_window.menu_bar.refresh_submenus()
elif action == Actions.FLOW_GRAPH_SCREEN_CAPTURE: