commit 17948fb781be9e8a7292e3f822681cb529889592
parent 471cab6089e71e49b931ebf0dff602a8d6437c27
Author: ThomasV <thomasv@gitorious>
Date: Wed, 15 Jul 2015 13:54:29 +0200
fix 1360
Diffstat:
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/gui/qt/lite_window.py b/gui/qt/lite_window.py
@@ -311,9 +311,10 @@ class MiniWindow(QDialog):
dest_address, amount, label, message, request_url = util.parse_URI(URI)
except:
return
+ amount_text = str(D(amount) / (10**self.actuator.g.decimal_point))
self.address_input.setText(dest_address)
self.address_field_changed(dest_address)
- self.amount_input.setText(str(amount))
+ self.amount_input.setText(amount_text)
def activate(self):
pass
diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
@@ -1748,8 +1748,8 @@ class ElectrumWindow(QMainWindow):
self.search_box.hide()
sb.addPermanentWidget(self.search_box)
- #if (int(qtVersion[0]) >= 4 and int(qtVersion[2]) >= 7):
- # sb.addPermanentWidget( StatusBarButton( QIcon(":icons/switchgui.png"), _("Switch to Lite Mode"), self.go_lite ) )
+ if (int(qtVersion[0]) >= 4 and int(qtVersion[2]) >= 7):
+ sb.addPermanentWidget( StatusBarButton( QIcon(":icons/switchgui.png"), _("Switch to Lite Mode"), self.go_lite ) )
self.lock_icon = QIcon()
self.password_button = StatusBarButton( self.lock_icon, _("Password"), self.change_password_dialog )