Browse Source

#102 - Show import dialog first

import_zecw
Aditya Kulkarni 5 years ago
parent
commit
c0e950612d
  1. 11
      src/mainwindow.cpp

11
src/mainwindow.cpp

@ -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);
}
}

Loading…
Cancel
Save