Changeset 412e069e in sasview for src/sas/qtgui/MainWindow/DataExplorer.py
- Timestamp:
- Nov 7, 2017 6:29:59 AM (6 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:
- 3e8dee3
- Parents:
- 6280464
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/DataExplorer.py
r6280464 r412e069e 270 270 'options' : QtWidgets.QFileDialog.DontUseNativeDialog 271 271 } 272 filename = str(QtWidgets.QFileDialog.getSaveFileName(**kwargs)) 272 name_tuple = QtWidgets.QFileDialog.getSaveFileName(**kwargs) 273 filename = name_tuple[0] 273 274 if filename: 275 _, extension = os.path.splitext(filename) 276 if not extension: 277 filename = '.'.join((filename, 'json')) 274 278 self.communicator.statusBarUpdateSignal.emit("Saving Project... %s\n" % os.path.basename(filename)) 275 279 with open(filename, 'w') as outfile: … … 1084 1088 # TODO: fix this to resemble GuiUtils.updateModelItemWithPlot 1085 1089 # 1086 self.model.beginResetModel() 1087 current_tab_name = model_item.text()[:2] 1088 for current_index in range(self.theory_model.rowCount()): 1089 if current_tab_name in self.theory_model.item(current_index).text(): 1090 self.theory_model.removeRow(current_index) 1091 break 1092 1093 # Reset the view 1094 self.model.endResetModel() 1090 ##self.model.beginResetModel() 1091 ##current_tab_name = model_item.text()[:2] 1092 ##for current_index in range(self.theory_model.rowCount()): 1093 #if current_tab_name in self.theory_model.item(current_index).text(): 1094 # return 1095 ## self.theory_model.removeRow(current_index) 1096 ## break 1097 1098 ### Reset the view 1099 ##self.model.endResetModel() 1095 1100 1096 1101 # Reset the view
Note: See TracChangeset
for help on using the changeset viewer.