k=KeyPair::fromEncryptedSeed(&encseed,QInputDialog::getText(this,"Enter Password","Enter the wallet's passphrase",QLineEdit::Password).toStdString());
if(obj["ethaddr"].type()==js::str_type)
{
Addressa(obj["ethaddr"].get_str());
Addressb=k.address();
if(a!=b)
{
if(QMessageBox::warning(this,"Password Wrong","Could not import the secret key: the password you gave appears to be wrong.",QMessageBox::Retry,QMessageBox::Cancel)==QMessageBox::Cancel)
QMessageBox::warning(this,"Already Have Key","Could not import the secret key: we already own this account.");
}
KeyPairk=m_keyManager.presaleSecret(dev::contentsString(s.toStdString()),[&](bool){returnQInputDialog::getText(this,"Enter Password","Enter the wallet's passphrase",QLineEdit::Password).toStdString();});