Revert "Close app on welcome back cancel"

This reverts commit 7398c70e2b.
This commit is contained in:
fekt
2022-11-03 12:05:59 -04:00
parent 7398c70e2b
commit bf4b9e53ca

View File

@@ -441,9 +441,6 @@ void MainWindow::closeEventpw(QCloseEvent* event) {
} else { } else {
qDebug() << __func__ << ": invalid rpc object!"; qDebug() << __func__ << ": invalid rpc object!";
} }
// Close the app
this->close();
} }
void MainWindow::encryptWallet() { void MainWindow::encryptWallet() {
@@ -474,7 +471,8 @@ void MainWindow::encryptWallet() {
QObject::connect(ed.txtConfirmPassword, &QLineEdit::textChanged, fnPasswordEdited); QObject::connect(ed.txtConfirmPassword, &QLineEdit::textChanged, fnPasswordEdited);
QObject::connect(ed.txtPassword, &QLineEdit::textChanged, fnPasswordEdited); QObject::connect(ed.txtPassword, &QLineEdit::textChanged, fnPasswordEdited);
if (d.exec() == QDialog::Accepted) { if (d.exec() == QDialog::Accepted)
{
QString passphraseBlank = ed.txtPassword->text(); // data comes from user inputs QString passphraseBlank = ed.txtPassword->text(); // data comes from user inputs
QString passphrase = QString("HUSH3") + passphraseBlank + QString("SDL"); QString passphrase = QString("HUSH3") + passphraseBlank + QString("SDL");
@@ -650,7 +648,8 @@ void MainWindow::removeWalletEncryptionStartUp() {
cl->loadConnection(); cl->loadConnection();
}); });
if (d.exec() == QDialog::Accepted) { if (d.exec() == QDialog::Accepted)
{
QString passphraseBlank = ed.txtPassword->text(); // data comes from user inputs QString passphraseBlank = ed.txtPassword->text(); // data comes from user inputs
QString passphrase = QString("HUSH3") + passphraseBlank + QString("SDL"); QString passphrase = QString("HUSH3") + passphraseBlank + QString("SDL");