|
|
@ -547,12 +547,13 @@ void MainWindow::onWalletCreatedError(const QString &err) {
|
|
|
|
this->showWizard(WalletWizard::Page_CreateWallet);
|
|
|
|
this->showWizard(WalletWizard::Page_CreateWallet);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::onWalletOpenPasswordRequired(bool invalidPassword) {
|
|
|
|
void MainWindow::onWalletOpenPasswordRequired(bool invalidPassword, const QString &path) {
|
|
|
|
|
|
|
|
QFileInfo fileInfo(path);
|
|
|
|
QInputDialog passwordDialog(this);
|
|
|
|
QInputDialog passwordDialog(this);
|
|
|
|
passwordDialog.setInputMode(QInputDialog::TextInput);
|
|
|
|
passwordDialog.setInputMode(QInputDialog::TextInput);
|
|
|
|
passwordDialog.setTextEchoMode(QLineEdit::Password);
|
|
|
|
passwordDialog.setTextEchoMode(QLineEdit::Password);
|
|
|
|
passwordDialog.setWindowTitle("Password required");
|
|
|
|
passwordDialog.setWindowTitle("Password required");
|
|
|
|
passwordDialog.setLabelText("Please enter wallet password.");
|
|
|
|
passwordDialog.setLabelText(QString("Please enter %1 wallet password.").arg(fileInfo.fileName()));
|
|
|
|
passwordDialog.resize(300, 100);
|
|
|
|
passwordDialog.resize(300, 100);
|
|
|
|
if(!(bool)passwordDialog.exec())
|
|
|
|
if(!(bool)passwordDialog.exec())
|
|
|
|
return this->showWizard(WalletWizard::Page_OpenWallet);
|
|
|
|
return this->showWizard(WalletWizard::Page_OpenWallet);
|
|
|
|