Browse Source

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

import_zecw
adityapk00 6 years ago
parent
commit
ac2e3f5003
  1. 7
      src/mainwindow.cpp

7
src/mainwindow.cpp

@ -562,6 +562,10 @@ void MainWindow::postToZBoard() {
void MainWindow::doImport(QList<QString>* 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);
}
}

Loading…
Cancel
Save