Changeset 9759

Show
Ignore:
Timestamp:
10/08/08 18:03:45
Author:
jblum
Message:

must check for exists, then ro

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gnuradio/trunk/grc/src/gui/ActionHandler.py

    r9751 r9759  
    329329                        self.main_window.close_page() 
    330330                elif state == Actions.FLOW_GRAPH_SAVE: 
    331                         #read-only or undefines file path, do save-as 
     331                        #read-only or undefined file path, do save-as 
    332332                        if self.get_page().get_read_only() or not self.get_page().get_file_path(): 
    333333                                self.handle_states(Actions.FLOW_GRAPH_SAVE_AS) 
  • gnuradio/trunk/grc/src/gui/NotebookPage.py

    r9751 r9759  
    143143                """ 
    144144                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) 
    146147 
    147148        def get_file_path(self):