check dialog is active before updating

This commit is contained in:
Aditya Kulkarni 2018-11-22 08:51:03 -08:00
parent 686c99cbc8
commit 339b5d9a2c
1 changed files with 1 additions and 1 deletions

View File

@ -725,7 +725,7 @@ void MainWindow::exportKeys(QString addr) {
auto fnUpdateUIWithKeys = [=](QList<QPair<QString, QString>> privKeys) {
// Check to see if we are still showing.
if (!isDialogAlive) return;
if (! *(isDialogAlive.get()) ) return;
QString allKeysTxt;
for (auto keypair : privKeys) {