Changeset 9759
- Timestamp:
- 10/08/08 18:03:45
- Files:
-
- gnuradio/trunk/grc/src/gui/ActionHandler.py (modified) (1 diff)
- gnuradio/trunk/grc/src/gui/NotebookPage.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gnuradio/trunk/grc/src/gui/ActionHandler.py
r9751 r9759 329 329 self.main_window.close_page() 330 330 elif state == Actions.FLOW_GRAPH_SAVE: 331 #read-only or undefine sfile path, do save-as331 #read-only or undefined file path, do save-as 332 332 if self.get_page().get_read_only() or not self.get_page().get_file_path(): 333 333 self.handle_states(Actions.FLOW_GRAPH_SAVE_AS) gnuradio/trunk/grc/src/gui/NotebookPage.py
r9751 r9759 143 143 """ 144 144 if not self.get_file_path(): return False 145 return not os.access(self.get_file_path(), os.W_OK) 145 return os.path.exists(self.get_file_path()) and \ 146 not os.access(self.get_file_path(), os.W_OK) 146 147 147 148 def get_file_path(self):
