From 355f2e07d4657f13d9d3844a51196ffe16c9082e Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 5 Apr 2016 17:24:03 +0200 Subject: [PATCH] fix #1749 --- gui/kivy/uix/screens.py | 3 ++- gui/kivy/uix/ui_screens/history.kv | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gui/kivy/uix/screens.py b/gui/kivy/uix/screens.py index b09d8c184..0f253bd8c 100644 --- a/gui/kivy/uix/screens.py +++ b/gui/kivy/uix/screens.py @@ -164,7 +164,8 @@ class HistoryScreen(CScreen): ri.icon = icon ri.date = date_time ri.message = message - ri.value = value + ri.value = value if value is not None else 0 + ri.value_known = value is not None ri.quote_text = quote_text ri.confirmations = conf ri.tx_hash = tx diff --git a/gui/kivy/uix/ui_screens/history.kv b/gui/kivy/uix/ui_screens/history.kv index 69ec02c18..8c4a29dd9 100644 --- a/gui/kivy/uix/ui_screens/history.kv +++ b/gui/kivy/uix/ui_screens/history.kv @@ -20,7 +20,8 @@ icon: 'atlas://gui/kivy/theming/light/important' message: '' value: 0 - amount: app.format_amount(self.value, True) if self.value is not None else '--' + value_known: True + amount: app.format_amount(self.value, True) if self.value_known else '--' amount_color: '#FF6657' if self.value < 0 else '#2EA442' confirmations: 0 date: ''