mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-03-09 10:04:48 +00:00
History: don't use a NULL model
This commit is contained in:
parent
68736ab834
commit
957e22422c
1 changed files with 2 additions and 0 deletions
|
@ -43,6 +43,8 @@ Rectangle {
|
||||||
color: "#F0EEEE"
|
color: "#F0EEEE"
|
||||||
|
|
||||||
function getSelectedAmount() {
|
function getSelectedAmount() {
|
||||||
|
if (typeof model === 'undefined')
|
||||||
|
return ""
|
||||||
var total = 0
|
var total = 0
|
||||||
var count = model.rowCount()
|
var count = model.rowCount()
|
||||||
for (var i = 0; i < count; ++i) {
|
for (var i = 0; i < count; ++i) {
|
||||||
|
|
Loading…
Reference in a new issue