Ignore:
File:
1 edited

Legend:

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

    r4fbf0db rfa762f4  
    1818    ERROR_COLUMN_CAPTION = " (Err)" 
    1919    IS_WIN = (sys.platform == 'win32') 
     20    windowClosedSignal = QtCore.pyqtSignal() 
    2021    def __init__(self, parent = None, output_data=None): 
    2122 
     
    5455        # Fill in the table from input data 
    5556        self.setupTable(widget=self.tblParams, data=output_data) 
    56         #TODO: This is not what was inteded to be. 
    5757        if output_data is not None: 
    5858            # Set a table tooltip describing the model 
    59             model_name = list(output_data.keys())[0] 
     59            model_name = output_data[0][0].model.id 
    6060            self.tabWidget.setTabToolTip(0, model_name) 
    6161 
     
    6464        Overwrite QDialog close method to allow for custom widget close 
    6565        """ 
    66         # Maybe we should just minimize 
    67         self.setWindowState(QtCore.Qt.WindowMinimized) 
     66        # notify the parent so it hides this window 
     67        self.windowClosedSignal.emit() 
    6868        event.ignore() 
    6969 
     
    153153        Create a new tab with batch fitting results 
    154154        """ 
    155         self.addTabPage() 
     155        if self.has_data: 
     156            self.addTabPage() 
    156157        # Update the new widget 
    157158        # Fill in the table from input data in the last/newest page 
     
    311312        # Check if 2D model. If not, remove theta/phi 
    312313        if isinstance(model.data.sas_data, Data1D): 
    313             param_list.remove('theta') 
    314             param_list.remove('phi') 
     314            if 'theta' in param_list: 
     315                param_list.remove('theta') 
     316            if 'phi' in param_list: 
     317                param_list.remove('phi') 
    315318 
    316319        rows = len(data) 
Note: See TracChangeset for help on using the changeset viewer.