Changeset 56b22f9 in sasview for src/sas/qtgui/Utilities/GuiUtils.py


Ignore:
Timestamp:
May 3, 2017 8:42:29 AM (8 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:
31e4bb8
Parents:
02ddfb4
Message:

Code cleanup and minor refactoring

File:
1 edited

Legend:

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

    rd48cc19 r56b22f9  
    337337            # TODO: assure item type is correct (either data1/2D or Plotter) 
    338338            plot_data.append(item.child(0).data().toPyObject()) 
    339         # Going 1 level deeper only 
    340         for index_2 in range(item.rowCount()): 
    341             item_2 = item.child(index_2) 
    342             if item_2 and item_2.isCheckable(): 
    343                 # TODO: assure item type is correct (either data1/2D or Plotter) 
    344                 plot_data.append(item_2.child(0).data().toPyObject()) 
     339            # Going 1 level deeper only 
     340            for index_2 in range(item.rowCount()): 
     341                item_2 = item.child(index_2) 
     342                if item_2 and item_2.isCheckable(): 
     343                    # TODO: assure item type is correct (either data1/2D or Plotter) 
     344                    plot_data.append(item_2.child(0).data().toPyObject()) 
    345345 
    346346    return plot_data 
Note: See TracChangeset for help on using the changeset viewer.