mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 15:21:30 +02:00
Show warning on corrupted keys
This commit is contained in:
@@ -377,6 +377,7 @@ void MainWindow::initWalletContext() {
|
||||
connect(m_ctx.get(), &AppContext::initiateTransaction, this, &MainWindow::onInitiateTransaction);
|
||||
connect(m_ctx.get(), &AppContext::endTransaction, this, &MainWindow::onEndTransaction);
|
||||
connect(m_ctx.get(), &AppContext::customRestoreHeightSet, this, &MainWindow::onCustomRestoreHeightSet);
|
||||
connect(m_ctx.get(), &AppContext::keysCorrupted, this, &MainWindow::onKeysCorrupted);
|
||||
|
||||
// Nodes
|
||||
connect(m_ctx->nodes, &Nodes::updateStatus, this, &MainWindow::onSetStatusText);
|
||||
@@ -1439,6 +1440,14 @@ void MainWindow::onCustomRestoreHeightSet(int height) {
|
||||
this->menuQuitClicked();
|
||||
}
|
||||
|
||||
void MainWindow::onKeysCorrupted() {
|
||||
if (!m_criticalWarningShown) {
|
||||
m_criticalWarningShown = true;
|
||||
QMessageBox::warning(this, "Critical error", "WARNING!\n\nThe wallet keys are corrupted.\n\nTo prevent LOSS OF FUNDS do NOT continue to use this wallet file.\n\nRestore your wallet from seed.\n\nPlease report this incident to the Feather developers.\n\nWARNING!");
|
||||
m_sendWidget->disableSendButton();
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::onExportHistoryCSV(bool checked) {
|
||||
if (m_ctx->wallet == nullptr)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user