#102 - Show import dialog first

This commit is contained in:
Aditya Kulkarni
2019-02-19 15:06:51 -08:00
parent 9660a9db65
commit c0e950612d

View File

@@ -648,10 +648,6 @@ void MainWindow::doImport(QList<QString>* keys) {
if (keys->isEmpty()) {
delete keys;
QMessageBox::information(this,
"Imported", tr("The keys were imported. It may take several minutes to rescan the blockchain. Until then, functionality may be limited"),
QMessageBox::Ok);
ui->statusBar->showMessage(tr("Private key import rescan finished"));
return;
}
@@ -784,7 +780,12 @@ void MainWindow::importPrivKey() {
});
// Start the import. The function takes ownership of keys
doImport(keys);
QTimer::singleShot(1, [=]() {doImport(keys);});
// Show the dialog that keys will be imported.
QMessageBox::information(this,
"Imported", tr("The keys were imported. It may take several minutes to rescan the blockchain. Until then, functionality may be limited"),
QMessageBox::Ok);
}
}