noteimp logs total itself; set import button to default

This commit is contained in:
Damien Elmes 2012-05-06 17:53:46 +09:00
parent 9fc3647842
commit f0b6a22f03
2 changed files with 4 additions and 3 deletions

View file

@ -157,9 +157,7 @@ you can enter it here. Use \\t to represent tab."""),
return
finally:
self.mw.progress.finish()
txt = (
_("Importing complete. %(num)d notes imported or updated.\n") %
{"num": self.importer.total})
txt = _("Importing complete.") + "\n"
if self.importer.log:
txt += "\n".join(self.importer.log)
self.close()

View file

@ -72,6 +72,9 @@
<property name="text">
<string>&amp;Import</string>
</property>
<property name="default">
<bool>true</bool>
</property>
</widget>
</item>
</layout>