diff --git a/src/firsttimewizard.cpp b/src/firsttimewizard.cpp index 5be3733..20e7d46 100644 --- a/src/firsttimewizard.cpp +++ b/src/firsttimewizard.cpp @@ -57,11 +57,9 @@ NewOrRestorePage::NewOrRestorePage(FirstTimeWizard *parent) : QWizardPage(parent QGraphicsScene* scene = new QGraphicsScene(); QGraphicsView* view = new QGraphicsView(scene); - // QPixmap pixmap(":/icons/res/hush-passion.png"); form.Logo->setScene(scene); QPixmap pixmap(":/icons/res/dark-01.png"); - // QGraphicsPixmapItem* item = new QGraphicsPixmapItem(pixmap)); - scene->addPixmap(pixmap); + scene->addPixmap(pixmap); form.Logo->show(); diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 8c9923b..6910eff 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -576,34 +576,15 @@ void MainWindow::removeWalletEncryptionStartUp() { auto dirHome = QDir(QStandardPaths::writableLocation(QStandardPaths::HomeLocation)); QFile wallet(dirwallet); - if (wallet.size() > 0) + if (wallet.size() == 0) { - if (fileExists(dirwalletbackup)) - - { - - QMessageBox::information(this, tr("You still have plaintext data on your disk!"), - QString("WARNING: Delete it only if you have a backup of your Wallet Seed."), - QMessageBox::Ok - ); - // backup.remove(); - - } - - QMessageBox::information(this, tr("Wallet Encryption Success"), - QString("SDL is ready to Rock"), - QMessageBox::Ok - ); - - - }else{ - + QMessageBox::critical(this, tr("Wallet Encryption Failed"), QString("false password please try again"), QMessageBox::Ok ); this->removeWalletEncryptionStartUp(); - } + }else{} }else{