Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/FittingPerspective.py

    r3b3b40b r14ec91c5  
    88from bumps import fitters 
    99 
    10 import sas.qtgui.Utilities.LocalConfig as LocalConfig 
    1110import sas.qtgui.Utilities.ObjectLibrary as ObjectLibrary 
    1211 
     
    117116        tab     = FittingWidget(parent=self.parent, data=data, tab_id=self.maxIndex+1) 
    118117        tab.is_batch_fitting = is_batch 
    119  
    120118        # Add this tab to the object library so it can be retrieved by scripting/jupyter 
    121119        tab_name = self.getTabName(is_batch=is_batch) 
     
    125123            self.updateFitDict(data, tab_name) 
    126124        self.maxIndex += 1 
    127         icon = QtGui.QIcon() 
    128         if is_batch: 
    129             icon.addPixmap(QtGui.QPixmap("src/sas/qtgui/images/icons/layers.svg")) 
    130         self.addTab(tab, icon, tab_name) 
    131         # Show the new tab 
    132         self.setCurrentIndex(self.maxIndex-1) 
    133         # Notify listeners 
     125        self.addTab(tab, tab_name) 
    134126        self.tabsModifiedSignal.emit() 
    135127 
     
    148140        ObjectLibrary.addObject(tab_name, tab) 
    149141        self.tabs.append(tab) 
    150         icon = QtGui.QIcon() 
    151         icon.addPixmap(QtGui.QPixmap("src/sas/qtgui/images/icons/link.svg")) 
    152         self.addTab(tab, icon, tab_name) 
    153  
    154         # This will be the last tab, so set the index accordingly 
    155         self.setCurrentIndex(self.count()-1) 
     142        self.addTab(tab, tab_name) 
    156143 
    157144    def updateFitDict(self, item_key, tab_name): 
Note: See TracChangeset for help on using the changeset viewer.