Commit 727ff414 authored by Pierre Kim's avatar Pierre Kim

Add wallet generation messages

parent 730e84df
......@@ -6,6 +6,7 @@
#include <QDateTime>
#include <QLocale>
#include <QVector>
#include <QMessageBox>
#include <Common/Util.h>
#include <Wallet/WalletErrors.h>
......@@ -104,10 +105,12 @@ void WalletAdapter::open(const QString& _password) {
} else {
Settings::instance().setEncrypted(false);
try {
QMessageBox::information(nullptr, QObject::tr("Information"), QObject::tr("Generating a new wallet. Please back up your wallet after ManateeCoin is loaded."));
m_wallet->initAndGenerate("");
} catch (std::system_error&) {
delete m_wallet;
m_wallet = nullptr;
QMessageBox::warning(nullptr, QObject::tr("Fail"), QObject::tr("New wallet generation failed."));
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment