Move signature verification functions to CPubKey.
[novacoin.git] / src / qt / multisigaddressentry.cpp
index ccc0568..4b07e11 100644 (file)
@@ -92,6 +92,8 @@ void MultisigAddressEntry::on_pubkey_textChanged(const QString &pubkey)
     QString associatedLabel = model->getAddressTableModel()->labelForAddress(address.ToString().c_str());
     if(!associatedLabel.isEmpty())
         ui->label->setText(associatedLabel);
+    else
+        ui->label->setText(QString());
 }
 
 void MultisigAddressEntry::on_address_textChanged(const QString &address)
@@ -106,7 +108,7 @@ void MultisigAddressEntry::on_address_textChanged(const QString &address)
     {
         CPubKey vchPubKey;
         model->getPubKey(keyID, vchPubKey);
-        std::string pubkey = HexStr(vchPubKey.Raw());
+        std::string pubkey = HexStr(vchPubKey.begin(), vchPubKey.end());
         if(!pubkey.empty())
             ui->pubkey->setText(pubkey.c_str());
     }
@@ -115,4 +117,4 @@ void MultisigAddressEntry::on_address_textChanged(const QString &address)
     QString associatedLabel = model->getAddressTableModel()->labelForAddress(address);
     if(!associatedLabel.isEmpty())
         ui->label->setText(associatedLabel);
-}
\ No newline at end of file
+}