exportdialog: fix bug where files would always be imported after export

Fixes #2069
This commit is contained in:
itsmattkc
2022-10-23 09:36:38 -07:00
parent c43d4b7a12
commit 70b4292627
+1 -1
View File
@@ -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);
}