Wallet encryption part 2: ask passphrase when needed, add menu options
[novacoin.git] / src / qt / editaddressdialog.cpp
index 2b3d9bf..06e74db 100644 (file)
@@ -92,6 +92,11 @@ void EditAddressDialog::accept()
                 tr("The entered address \"%1\" is not a valid bitcoin address.").arg(ui->addressEdit->text()),
                 QMessageBox::Ok, QMessageBox::Ok);
             return;
+        case AddressTableModel::WALLET_UNLOCK_FAILURE:
+            QMessageBox::critical(this, windowTitle(),
+                tr("Could not unlock wallet."),
+                QMessageBox::Ok, QMessageBox::Ok);
+            return;
         }
 
         return;