electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 7ea2a217cdb7c64219a9360d043fd589efbc82f9
parent e3d64a469dd78137a3b80e4c5ca7e4090adaf8ab
Author: ThomasV <thomasv@electrum.org>
Date:   Mon,  4 Apr 2016 16:49:19 +0200

fix issue #1748

Diffstat:
Mgui/qt/main_window.py | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py @@ -2407,7 +2407,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): def do_import_labels(self): - labelsFile = self.getOpenFileName(_("Open labels file"), "*.dat") + labelsFile = self.getOpenFileName(_("Open labels file"), "*.json") if not labelsFile: return try: f = open(labelsFile, 'r') @@ -2423,10 +2423,10 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): def do_export_labels(self): labels = self.wallet.labels try: - fileName = self.getSaveFileName(_("Select file to save your labels"), 'electrum_labels.dat', "*.dat") + fileName = self.getSaveFileName(_("Select file to save your labels"), 'electrum_labels.json', "*.json") if fileName: with open(fileName, 'w+') as f: - json.dump(labels, f) + json.dump(labels, f, indent=4, sort_keys=True) self.show_message(_("Your labels where exported to") + " '%s'" % str(fileName)) except (IOError, os.error), reason: self.show_critical(_("Electrum was unable to export your labels.") + "\n" + str(reason))