From 28062bafc476e8e699073a399d409250b7f4d9f0 Mon Sep 17 00:00:00 2001 From: Mark Shilton Date: Fri, 12 Feb 2016 13:23:12 +0000 Subject: [PATCH] Filename of current image is used as default name when saving label data --- labelImg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labelImg.py b/labelImg.py index d9561778..e926866c 100755 --- a/labelImg.py +++ b/labelImg.py @@ -920,7 +920,7 @@ class MainWindow(QMainWindow, WindowMixin): caption = '%s - Choose File' % __appname__ filters = 'File (*%s)' % LabelFile.suffix openDialogPath = self.currentPath() - dlg = (self, caption, openDialogPath, filters) + dlg = QFileDialog(self, caption, openDialogPath, filters) dlg.setDefaultSuffix(LabelFile.suffix[1:]) dlg.setAcceptMode(QFileDialog.AcceptSave) dlg.setConfirmOverwrite(True)