Ignore:
Timestamp:
Oct 31, 2018 6:08:16 AM (6 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
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.
Message:

Merge branch 'ESS_GUI' into ESS_GUI_project_save

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/DataExplorer.py

    rb1b71ad r186d678  
    545545        pass 
    546546 
    547     def sendData(self, event): 
     547    def sendData(self, event=None): 
    548548        """ 
    549549        Send selected item data to the current perspective and set the relevant notifiers 
     
    13711371        Mask Editor for 2D plots 
    13721372        """ 
     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 
    13731379        try: 
    13741380            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 
    13751383                index = self.current_view.selectedIndexes()[0] 
    13761384                proxy = self.current_view.model() 
     
    13811389 
    13821390            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 
    13881392                msg.exec_() 
    13891393                return 
    13901394        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) 
    13961395            msg.exec_() 
    13971396            return 
Note: See TracChangeset for help on using the changeset viewer.