From ac2e3f50034d8014955a86a589d180bac8d921c9 Mon Sep 17 00:00:00 2001 From: adityapk00 Date: Sat, 10 Nov 2018 09:03:38 -0800 Subject: [PATCH] #39 - Show import priv key successful only if there were no erros. --- src/mainwindow.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index a4c624e..08b3e7c 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -562,6 +562,10 @@ void MainWindow::postToZBoard() { void MainWindow::doImport(QList* keys) { if (keys->isEmpty()) { 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"); return; } @@ -607,9 +611,6 @@ void MainWindow::importPrivKey() { // Start the import. The function takes ownership of 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); } }