1
0

set_label

This commit is contained in:
ThomasV
2013-09-08 20:10:43 +02:00
parent 328315f94b
commit cd6832df2e
3 changed files with 13 additions and 11 deletions

View File

@@ -1948,8 +1948,7 @@ class ElectrumWindow(QMainWindow):
data = f.read()
f.close()
for key, value in json.loads(data).items():
self.wallet.labels[key] = value
self.wallet.save()
self.wallet.set_label(key, value)
QMessageBox.information(None, _("Labels imported"), _("Your labels were imported from")+" '%s'" % str(labelsFile))
except (IOError, os.error), reason:
QMessageBox.critical(None, _("Unable to import labels"), _("Electrum was unable to import your labels.")+"\n" + str(reason))