mirror of
https://github.com/ciromattia/kcc
synced 2026-07-04 12:05:34 +00:00
Keep metadata editor dialog open when error occur during bulks save
This commit is contained in:
@@ -1553,9 +1553,10 @@ class KCCGUI_MetaEditor(KCC_ui_editor.Ui_editorDialog):
|
|||||||
if errors:
|
if errors:
|
||||||
GUI.showDialog("Some files failed to save:\n\n" + "\n".join(errors[:10]) +
|
GUI.showDialog("Some files failed to save:\n\n" + "\n".join(errors[:10]) +
|
||||||
(f"\n...and {len(errors) - 10} more" if len(errors) > 10 else ""), 'error')
|
(f"\n...and {len(errors) - 10} more" if len(errors) > 10 else ""), 'error')
|
||||||
|
self.statusLabel.setText('Errors occurred.')
|
||||||
else:
|
else:
|
||||||
self.statusLabel.setText(f'Successfully updated {total} files.')
|
self.statusLabel.setText(f'Successfully updated {total} files.')
|
||||||
self.ui.close()
|
self.ui.close()
|
||||||
else:
|
else:
|
||||||
for field in (self.volumeLine, self.numberLine):
|
for field in (self.volumeLine, self.numberLine):
|
||||||
if field.text().isnumeric() or self.cleanData(field.text()) == '':
|
if field.text().isnumeric() or self.cleanData(field.text()) == '':
|
||||||
|
|||||||
Reference in New Issue
Block a user