mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-25 10:18:33 +01:00
PasswordDialog: Show wallet name
This commit is contained in:
+3
-2
@@ -545,12 +545,13 @@ void MainWindow::onWalletCreatedError(const QString &err) {
|
||||
this->showWizard(WalletWizard::Page_CreateWallet);
|
||||
}
|
||||
|
||||
void MainWindow::onWalletOpenPasswordRequired(bool invalidPassword) {
|
||||
void MainWindow::onWalletOpenPasswordRequired(bool invalidPassword, const QString &path) {
|
||||
QFileInfo fileInfo(path);
|
||||
QInputDialog passwordDialog(this);
|
||||
passwordDialog.setInputMode(QInputDialog::TextInput);
|
||||
passwordDialog.setTextEchoMode(QLineEdit::Password);
|
||||
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);
|
||||
if(!(bool)passwordDialog.exec())
|
||||
return this->showWizard(WalletWizard::Page_OpenWallet);
|
||||
|
||||
Reference in New Issue
Block a user