Ignore:
Timestamp:
Nov 3, 2017 10:58:39 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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:
412e069e
Parents:
304d082
Message:

More Qt5 related fixes.

File:
1 edited

Legend:

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

    r304d082 r6280464  
    218218            'options'   : QtWidgets.QFileDialog.DontUseNativeDialog 
    219219        } 
    220         filename = str(QtWidgets.QFileDialog.getOpenFileName(**kwargs)) 
     220        filename = QtWidgets.QFileDialog.getOpenFileName(**kwargs)[0] 
    221221        if filename: 
    222222            load_thread = threads.deferToThread(self.readProject, filename) 
     
    582582        # Show the plot 
    583583        new_plot.show() 
     584        new_plot.canvas.draw() 
    584585 
    585586        # Update the active chart list 
     
    628629        paths = QtWidgets.QFileDialog.getOpenFileNames(self, "Choose a file", "", 
    629630                wlist, None, QtWidgets.QFileDialog.DontUseNativeDialog)[0] 
    630         # [0] is new in Qt5 as getOpenFileNames() returns now a tuple! 
    631         if paths is None: 
     631        if not paths: 
    632632            return 
    633633 
Note: See TracChangeset for help on using the changeset viewer.