From 7ea2a217cdb7c64219a9360d043fd589efbc82f9 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Mon, 4 Apr 2016 16:49:19 +0200 Subject: [PATCH] fix issue #1748 --- gui/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 index 9055cf96d..b0c024a8f 100644 --- 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))