Double-check current selection in EditorSession.export()
This action should be disabled when the selection is None, but whatever.
This commit is contained in:
parent
44179472b7
commit
a58d7c59e4
@ -812,6 +812,9 @@ class EditorSession(QtCore.QObject):
|
||||
self.importSchematic(filename)
|
||||
|
||||
def export(self):
|
||||
if self.currentSelection is None:
|
||||
return
|
||||
|
||||
# prompt for filename and format. maybe use custom browser to save to export library??
|
||||
startingDir = Settings().value("import_dialog/starting_dir", getUserSchematicsDirectory())
|
||||
result = QtGui.QFileDialog.getSaveFileName(QtGui.qApp.mainWindow,
|
||||
|
Reference in New Issue
Block a user