Changeset 5276eeb in sasview


Ignore:
Timestamp:
May 19, 2015 3:53:37 PM (10 years ago)
Author:
krzywon
Branches:
master, 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
ae047f2
Parents:
9776c82
Message:

Made a window pop up when saving a project fails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/guiframe/gui_manager.py

    rac7be54 r5276eeb  
    19601960                msg += "and model selected. " 
    19611961                msg += "No project was saved to %s" % (str(path)) 
    1962                 logging.error(msg) 
    1963                 wx.PostEvent(self, StatusEvent(status=msg)) 
     1962                logging.warning(msg) 
     1963                wx.PostEvent(self, StatusEvent(status=msg, info="error")) 
    19641964        except: 
    19651965            msg = "Error occurred while saving: " 
    19661966            msg += "To save, at least one application panel " 
    19671967            msg += "should have a data set.." 
    1968             wx.PostEvent(self, StatusEvent(status=msg)) 
     1968            wx.PostEvent(self, StatusEvent(status=msg, info="error")) 
    19691969 
    19701970    def on_save_helper(self, doc, reader, panel, path): 
Note: See TracChangeset for help on using the changeset viewer.