#39 - Show import priv key successful only if there were no erros.

This commit is contained in:
adityapk00
2018-11-10 09:03:38 -08:00
parent 13d48f80ca
commit ac2e3f5003

View File

@@ -562,6 +562,10 @@ void MainWindow::postToZBoard() {
void MainWindow::doImport(QList<QString>* keys) { void MainWindow::doImport(QList<QString>* keys) {
if (keys->isEmpty()) { if (keys->isEmpty()) {
delete keys; delete keys;
QMessageBox::information(this,
"Imported", "The keys were imported. It may take several minutes to rescan the blockchain. Until then, functionality may be limited",
QMessageBox::Ok);
ui->statusBar->showMessage("Private key import rescan finished"); ui->statusBar->showMessage("Private key import rescan finished");
return; return;
} }
@@ -607,9 +611,6 @@ void MainWindow::importPrivKey() {
// Start the import. The function takes ownership of keys // Start the import. The function takes ownership of keys
doImport(keys); doImport(keys);
QMessageBox::information(this,
"Imported", "The keys were imported. It may take several minutes to rescan the blockchain. Until then, functionality may be limited",
QMessageBox::Ok);
} }
} }