Fix crashes in release build, ZEC price

This commit is contained in:
Aditya Kulkarni
2018-11-02 10:17:18 -07:00
parent 04036f9d96
commit 59964c9f91
2 changed files with 6 additions and 4 deletions

View File

@@ -68,6 +68,7 @@ void RPC::setConnection(Connection* c) {
delete conn;
this->conn = c;
refreshZECPrice();
refresh();
}
@@ -754,6 +755,7 @@ void RPC::watchTxStatus() {
// Get the ZEC->USD price from coinmarketcap using their API
void RPC::refreshZECPrice() {
qDebug() << QString::fromStdString("Getting zec price");
if (conn == nullptr)
return noConnection();