Fix file save issue - #293

This commit is contained in:
vdalv 2018-05-15 22:25:46 -07:00 committed by darrenl
parent 542b87fd0a
commit fef4e6b057

View File

@ -1277,7 +1277,8 @@ class MainWindow(QMainWindow, WindowMixin):
dlg.selectFile(filenameWithoutExtension)
dlg.setOption(QFileDialog.DontUseNativeDialog, False)
if dlg.exec_():
return dlg.selectedFiles()[0]
fullFilePath = dlg.selectedFiles()[0]
return os.path.splitext(fullFilePath)[0] # Return file path without the extension.
return ''
def _saveFile(self, annotationFilePath):