From 70b42926273da6a1811ad469d323d29eb5418345 Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Sun, 23 Oct 2022 09:36:32 -0700 Subject: [PATCH] exportdialog: fix bug where files would always be imported after export Fixes #2069 --- app/dialog/export/export.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dialog/export/export.cpp b/app/dialog/export/export.cpp index 64573cf4f..386fa2e1b 100644 --- a/app/dialog/export/export.cpp +++ b/app/dialog/export/export.cpp @@ -391,7 +391,7 @@ void ExportDialog::ExportFinished() // If this task was cancelled, we stay open so the user can potentially queue another export } else { // Accept this dialog and close - if (import_file_after_export_) { + if (import_file_after_export_->isEnabled() && import_file_after_export_->isChecked()) { QString filename = filename_edit_->text().trimmed(); emit RequestImportFile(filename); }