Do not close import window on error

Closes #8202
This commit is contained in:
Cédric Krier committed 2024-05-27 16:32:58 +02:00
1 parent 7e0caccd67
commit 76b60d19ec
1 file changed
+3 -1
+3 -1
View File
@@ -201,7 +201,8 @@ class WinImport(WinCSV):
fname = self.import_csv_file.get_filename()
if fname:
self.import_csv(fname, fields)
if not self.import_csv(fname, fields):
return
self.destroy()
def import_csv(self, fname, fields):
@@ -252,3 +253,4 @@ class WinImport(WinCSV):
common.message(_('%d record imported.') % count)
else:
common.message(_('%d records imported.') % count)
return count