diff --git a/view/KeyView.cpp b/view/KeyView.cpp index 9ada6503..1d468b96 100644 --- a/view/KeyView.cpp +++ b/view/KeyView.cpp @@ -235,7 +235,7 @@ void KeyView::store() targetKey->isPubKey(), MainWindow::getPath(), this); dlg->image->setPixmap(*MainWindow::keyImg); - if (dlg->exec()) { + if (!dlg->exec()) { delete dlg; return; }