From 957e22422c9e09505c29ea57520b3325e66b4fa8 Mon Sep 17 00:00:00 2001 From: "moneromooo.monero" Date: Thu, 10 Nov 2016 20:14:22 +0000 Subject: [PATCH] History: don't use a NULL model --- pages/History.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pages/History.qml b/pages/History.qml index a6c216bf..cf326dd3 100644 --- a/pages/History.qml +++ b/pages/History.qml @@ -43,6 +43,8 @@ Rectangle { color: "#F0EEEE" function getSelectedAmount() { + if (typeof model === 'undefined') + return "" var total = 0 var count = model.rowCount() for (var i = 0; i < count; ++i) {