focus close button after import

This commit is contained in:
Damien Elmes 2009-04-23 02:02:47 +09:00
parent b3ed9613ac
commit 5540da95ef

View file

@ -135,6 +135,7 @@ class ImportDialog(QDialog):
_("Importing complete. %(num)d facts imported from %(file)s.\n") %
{"num": self.importer.total, "file": os.path.basename(self.file)})
self.dialog.groupBox.setShown(False)
self.dialog.buttonBox.button(QDialogButtonBox.Close).setFocus()
if self.importer.log:
txt += _("Log of import:\n") + "\n".join(self.importer.log)
self.dialog.status.setText(txt)