Changeset 8df5faa in sasview for fittingview/src


Ignore:
Timestamp:
Apr 30, 2012 5:54:12 PM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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:
6246e00
Parents:
ef26c83
Message:

fixed bookmarks with model_list sorted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/basepage.py

    ref26c83 r8df5faa  
    12191219            formfactor_pos = 0 
    12201220            for ind_form in range(self.formfactorbox.GetCount()): 
    1221                 if self.formfactorbox.GetString(ind_form).count(state.formfactorcombobox) > 0: 
     1221                if self.formfactorbox.GetString(ind_form) == (state.formfactorcombobox): 
    12221222                    formfactor_pos = int(ind_form) 
    12231223                    break 
     
    12311231            structfactor_pos = 0 
    12321232            for ind_struct in range(self.structurebox.GetCount()): 
    1233                 if self.structurebox.GetString(ind_struct).count(state.structurecombobox) > 0: 
     1233                if self.structurebox.GetString(ind_struct) == (state.structurecombobox) > 0: 
    12341234                    structfactor_pos = int(ind_struct) 
    12351235                    break 
     
    20092009                 
    20102010        # Sort the models 
    2011         mlist_sorted = mlist 
     2011        mlist_sorted = sorted(mlist) 
    20122012        for item in mlist_sorted: 
    20132013            combobox.Append(item[0], item[1]) 
Note: See TracChangeset for help on using the changeset viewer.