autop=QInputDialog::getText(this,"Re-Encrypt Key","Enter the original password for this key.\nHint: "+QString::fromStdString(m_keyManager.hint(a)),QLineEdit::Password,QString()).toStdString();
if(QMessageBox::question(this,"Re-Encrypt Key","Password given is incorrect. Would you like to try again?",QMessageBox::Retry,QMessageBox::Cancel)==QMessageBox::Cancel)
autop=QInputDialog::getText(nullptr,"Re-Encrypt Key",QString("Enter the original password for key %1.\nHint: %2").arg(QString::fromStdString(pretty(a))).arg(QString::fromStdString(m_keyManager.hint(a))),QLineEdit::Password,QString()).toStdString();
if(p.empty())
throwUnknownPassword();
throwPasswordUnknown();
returnp;
},(KDF)kdfs.indexOf(kdf)))
if(QMessageBox::question(this,"Re-Encrypt Key","Password given is incorrect. Would you like to try again?",QMessageBox::Retry,QMessageBox::Cancel)==QMessageBox::Cancel)