Ignore:
File:
1 edited

Legend:

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

    r72651df r2e5081b  
    3333        self.setDragDropMode(QtWidgets.QAbstractItemView.InternalMove) 
    3434 
    35         self._is_dragged = True 
     35        self._is_dragged = False 
    3636 
    3737    def isDragged(self): 
     
    872872        """ 
    873873        selected_rows = self.selectedParameters(self.tblTabList) 
    874         if len(selected_rows)!=2: 
    875             msg = "Please select two fit pages from the Source Choice table." 
    876             msgbox = QtWidgets.QMessageBox(self.parent) 
    877             msgbox.setIcon(QtWidgets.QMessageBox.Warning) 
    878             msgbox.setText(msg) 
    879             msgbox.setWindowTitle("2 fit page constraints") 
    880             retval = msgbox.exec_() 
    881             return 
    882  
    883         tab_list = [ObjectLibrary.getObject(self.tblTabList.item(s, 0).data(0)) for s in selected_rows] 
     874 
     875        tab_list = [ObjectLibrary.getObject(self.tblTabList.item(s, 0).data(0)) for s in range(self.tblTabList.rowCount())] 
    884876        # Create and display the widget for param1 and param2 
    885877        cc_widget = ComplexConstraint(self, tabs=tab_list) 
Note: See TracChangeset for help on using the changeset viewer.