diff --git a/AUTHORS b/AUTHORS index 4806d622ed63..1057e38346b1 100644 --- a/AUTHORS +++ b/AUTHORS @@ -9,4 +9,5 @@ Genjix - Porting pro-mode functionality to lite-gui and worked on server Slush - Work on the server. Designed the original Stratum spec. Julian Toash (Tuxavant) - Various fixes to the client. rdymac - Website and translations. +kyuupichan - Miscellaneous. pooler - Litecoin port. diff --git a/gui/qt/amountedit.py b/gui/qt/amountedit.py index 84035c340660..f6d4e9bab6eb 100644 --- a/gui/qt/amountedit.py +++ b/gui/qt/amountedit.py @@ -95,7 +95,7 @@ def get_amount(self): def setAmount(self, amount): if amount is None: - self.setText("") + self.setText(" ") # Space forces repaint in case units changed else: self.setText(format_satoshis_plain(amount, self.decimal_point())) diff --git a/gui/qt/console.py b/gui/qt/console.py index 5f15f0534482..4dde3974c3d0 100644 --- a/gui/qt/console.py +++ b/gui/qt/console.py @@ -213,10 +213,9 @@ def write(self, text): try: # eval is generally considered bad practice. use it wisely! result = eval(command, self.namespace, self.namespace) - result = util.json_encode(result) if result != None: if self.is_json: - util.print_msg(result) + util.print_msg(util.json_encode(result)) else: self.appendPlainText(repr(result)) except SyntaxError: diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py index 01be246b9362..52a3504895dd 100644 --- a/gui/qt/main_window.py +++ b/gui/qt/main_window.py @@ -2686,6 +2686,8 @@ def on_unit(x): unit_result = units[unit_combo.currentIndex()] if self.base_unit() == unit_result: return + edits = self.amount_e, self.fee_e, self.receive_amount_e, fee_e + amounts = [edit.get_amount() for edit in edits] if unit_result == 'LTC': self.decimal_point = 8 elif unit_result == 'mLTC': @@ -2698,8 +2700,8 @@ def on_unit(x): self.history_list.update() self.receive_list.update() self.address_list.update() - self.do_clear() - fee_e.setAmount(self.wallet.fee_per_kb(self.config)) + for edit, amount in zip(edits, amounts): + edit.setAmount(amount) self.update_status() unit_combo.currentIndexChanged.connect(on_unit) gui_widgets.append((unit_label, unit_combo))