Ignore:
Timestamp:
Oct 24, 2017 12:44:26 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, d6b234b
Parents:
16afe01 (diff), 5582b078 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into ESS_GUI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/DataManager.py

    r7d9c83c rf4a1433  
    8686        #creating a name for data 
    8787        title = "" 
    88         file_name = os.path.basename(path) if path is not None else data.filename 
     88        file_name = os.path.basename(path) if path is not None else os.path.basename(data.filename) 
    8989        if file_name: 
    9090            name = file_name 
     
    100100            title = file_name 
    101101 
    102         if new_plot.filename.strip() == "": 
     102        stripped_filename = new_plot.filename.strip() 
     103        if not stripped_filename: 
     104            new_plot.filename = file_name 
     105        if stripped_filename != os.path.basename(stripped_filename): 
    103106            new_plot.filename = file_name 
    104107 
Note: See TracChangeset for help on using the changeset viewer.