Changeset 38f838e in sasview for src/sas/qtgui


Ignore:
Timestamp:
Apr 23, 2018 10:35:08 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
fca1f50
Parents:
988deab
Message:

Code review fix - incorrect file save path in the Editor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Utilities/TabbedModelEditor.py

    r3790f7f r38f838e  
    125125        self.editor_widget.setEnabled(True) 
    126126        self.editor_widget.blockSignals(False) 
    127         self.filename, _ = os.path.splitext(os.path.basename(filename)) 
    128  
    129         self.setWindowTitle(self.window_title + " - " + self.filename) 
     127        self.filename = filename 
     128        display_name, _ = os.path.splitext(os.path.basename(filename)) 
     129 
     130        self.setWindowTitle(self.window_title + " - " + display_name) 
    130131 
    131132    def onModifiedExit(self): 
Note: See TracChangeset for help on using the changeset viewer.