Double-check current selection in EditorSession.export()

This action should be disabled when the selection is None, but whatever.
This commit is contained in:
David Vierra 2015-10-23 13:40:37 -10:00
parent 44179472b7
commit a58d7c59e4

View File

@ -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,