Browse Source

fix json compile issues

chat
Duke Leto 4 years ago
parent
commit
aed5e373f6
  1. 4
      src/mainwindow.cpp

4
src/mainwindow.cpp

@ -228,13 +228,13 @@ void MainWindow::sendMemo() {
// Either we made a custom zaddr for this contact in the past, or we make a new one now // Either we made a custom zaddr for this contact in the past, or we make a new one now
if(thisChat.getContact().getMyZaddr().isEmpty()) { if(thisChat.getContact().getMyZaddr().isEmpty()) {
QString newzaddr; QString newzaddr;
rpc->newZaddr( [=] (json reply) { rpc->newZaddr( [=] (QJsonValue reply) {
Tx tx; Tx tx;
tx.fee = Settings::getMinerFee(); tx.fee = Settings::getMinerFee();
//TODO: verify we currently own the private key to this zaddr via z_validateaddress //TODO: verify we currently own the private key to this zaddr via z_validateaddress
HushChat chat = MainWindow::getHushChat(); HushChat chat = MainWindow::getHushChat();
HushContact contact = chat.getContact(); HushContact contact = chat.getContact();
QString myZaddr = QString::fromStdString(reply.get<json::string_t>()); QString myZaddr = reply.toString();
QString addr = getZaddrForCurrentContact(); QString addr = getZaddrForCurrentContact();
QString name = getNameForCurrentContact(); QString name = getNameForCurrentContact();
qDebug() << "created new myZaddr="<< myZaddr << " for " << name; qDebug() << "created new myZaddr="<< myZaddr << " for " << name;

Loading…
Cancel
Save