Changeset b9dd680 in sasview


Ignore:
Timestamp:
May 5, 2012 1:28:08 PM (12 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:
78919f45
Parents:
199fdec
Message:

fixed a bug resetting model in all the pages on compiling a custom model

File:
1 edited

Legend:

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

    r011f570 rb9dd680  
    329329                        page.model_list_box = temp 
    330330                        current_val = page.formfactorbox.GetLabel() 
    331                         #pos = page.formfactorbox.GetSelection() 
    332                         page._show_combox_helper() 
    333                         new_val = page.formfactorbox.GetLabel() 
    334                         if current_val != new_val and new_val != '': 
    335                             page.formfactorbox.SetLabel(new_val) 
    336                         else: 
    337                             page.formfactorbox.SetLabel(current_val) 
     331                        if page.plugin_rbutton.GetValue(): 
     332                            #pos = page.formfactorbox.GetSelection() 
     333                            page._show_combox_helper() 
     334                            new_val = page.formfactorbox.GetLabel() 
     335                            if current_val != new_val and new_val != '': 
     336                                page.formfactorbox.SetLabel(new_val) 
     337                            else: 
     338                                page.formfactorbox.SetLabel(current_val) 
    338339        except: 
    339340            pass 
Note: See TracChangeset for help on using the changeset viewer.