Skip to content

Commit

Permalink
Fix file save issue - HumanSignal#293
Browse files Browse the repository at this point in the history
  • Loading branch information
vdalv authored and tzutalin committed May 19, 2018
1 parent 542b87f commit fef4e6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion labelImg.py
Original file line number Diff line number Diff line change
Expand Up @@ -1277,7 +1277,8 @@ def saveFileDialog(self):
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):
Expand Down

0 comments on commit fef4e6b

Please sign in to comment.