diff --git a/interface/src/ImportDialog.cpp b/interface/src/ImportDialog.cpp index b992b216bc..28e39f1abd 100644 --- a/interface/src/ImportDialog.cpp +++ b/interface/src/ImportDialog.cpp @@ -137,6 +137,11 @@ void ImportDialog::import() { } void ImportDialog::accept() { + // do nothing if import is not enable + if (!_importButton.isEnabled()) { + return; + } + if (!fileAccepted) { fileAccepted = true; emit accepted();