Changeset 044454d in sasview
- Timestamp:
- Apr 19, 2018 2:35:46 PM (7 years ago)
- 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:
- 0662f53
- Parents:
- 917eba5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Inversion/InversionPerspective.py
r917eba5 r044454d 86 86 for datum in data_list: 87 87 self.updateDataList(datum) 88 89 self.dataDeleted = False 88 90 89 91 self.enableButtons() … … 318 320 def displayChange(self, data_index=0): 319 321 """Switch to another item in the data list""" 322 if self.dataDeleted: 323 return 320 324 self.updateDataList(self._data) 321 325 self.setCurrentData(self.dataList.itemData(data_index)) … … 512 516 title = self.dataPlot.name 513 517 GuiUtils.updateModelItemWithPlot(self._data, self.dataPlot, title) 514 self.communicate.plotRequestedSignal.emit( 515 [self.dataPlot, self.logic.data]) 518 self.communicate.plotRequestedSignal.emit([self.dataPlot]) 516 519 self.enableButtons() 517 520 518 521 def removeData(self, data_list=None): 519 522 """Remove the existing data reference from the P(r) Persepective""" 523 self.dataDeleted = True 520 524 if not data_list: 521 525 data_list = [self._data] … … 523 527 for data in data_list: 524 528 self._dataList.pop(data) 525 data_file = GuiUtils.dataFromItem(data)526 self.batchResults.pop(data_file.filename)527 529 self._data = None 528 for index in range(0, len(self.dataList)): 530 length = len(self.dataList) 531 for index in reversed(range(length)): 529 532 if self.dataList.itemData(index) in data_list: 530 533 self.dataList.removeItem(index) 531 534 # Last file removed 535 self.dataDeleted = False 532 536 if len(self._dataList) == 0: 533 537 self.prPlot = None
Note: See TracChangeset
for help on using the changeset viewer.