Changeset e694f0f in sasview for src/sas/qtgui/Utilities


Ignore:
Timestamp:
Sep 19, 2017 4:17:58 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:
8f2548c
Parents:
8a32a6ff
Message:

Assure default file for saving has an extension

File:
1 edited

Legend:

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

    r3c8242c re694f0f  
    556556    default_name = os.path.basename(data.filename) 
    557557    default_name, extension = os.path.splitext(default_name) 
     558    if not extension: 
     559        extension = ".txt" 
    558560    default_name += "_out" + extension 
    559561 
Note: See TracChangeset for help on using the changeset viewer.