1
mirror of https://github.com/monero-project/monero-gui synced 2024-12-20 04:15:53 +01:00

MiddlePanel: fix null pointer dereference for history model

This commit is contained in:
moneromooo.monero 2016-11-18 21:48:19 +00:00
parent c83336cc47
commit 82149485aa

View File

@ -106,7 +106,7 @@ Rectangle {
}, State {
name: "History"
PropertyChanges { target: root; currentView: historyView }
PropertyChanges { target: historyView; model: appWindow.currentWallet.historyModel }
PropertyChanges { target: historyView; model: appWindow.currentWallet ? appWindow.currentWallet.historyModel : null }
}, State {
name: "Transfer"
PropertyChanges { target: root; currentView: transferView }