Changeset 186d678 in sasview for src/sas/qtgui/MainWindow/DataExplorer.py
- Timestamp:
- Oct 31, 2018 6:08:16 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 48df831
- Parents:
- b1b71ad (diff), 04e1c80 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/DataExplorer.py
rb1b71ad r186d678 545 545 pass 546 546 547 def sendData(self, event ):547 def sendData(self, event=None): 548 548 """ 549 549 Send selected item data to the current perspective and set the relevant notifiers … … 1371 1371 Mask Editor for 2D plots 1372 1372 """ 1373 msg = QtWidgets.QMessageBox() 1374 msg.setIcon(QtWidgets.QMessageBox.Information) 1375 msg.setText("Error: cannot apply mask.\n"+ 1376 "Please select a 2D dataset.") 1377 msg.setStandardButtons(QtWidgets.QMessageBox.Ok) 1378 1373 1379 try: 1374 1380 if data is None or not isinstance(data, Data2D): 1381 # if data wasn't passed - try to get it from 1382 # the currently selected item 1375 1383 index = self.current_view.selectedIndexes()[0] 1376 1384 proxy = self.current_view.model() … … 1381 1389 1382 1390 if data is None or not isinstance(data, Data2D): 1383 msg = QtWidgets.QMessageBox() 1384 msg.setIcon(QtWidgets.QMessageBox.Information) 1385 msg.setText("Error: cannot apply mask. \ 1386 Please select a 2D dataset.") 1387 msg.setStandardButtons(QtWidgets.QMessageBox.Cancel) 1391 # If data is still not right, complain 1388 1392 msg.exec_() 1389 1393 return 1390 1394 except: 1391 msg = QtWidgets.QMessageBox()1392 msg.setIcon(QtWidgets.QMessageBox.Information)1393 msg.setText("Error: No dataset selected. \1394 Please select a 2D dataset.")1395 msg.setStandardButtons(QtWidgets.QMessageBox.Cancel)1396 1395 msg.exec_() 1397 1396 return
Note: See TracChangeset
for help on using the changeset viewer.