Showing the changes to interface/src/ImportDialog.cpp (1 of 1 file). Show all
Unified · Split
| @@ -137,6 +137,11 @@ void ImportDialog::import() { · 136 unmodified lines | |||
| 137 | } | 137 | } |
| 138 | 138 | ||
| 139 | void ImportDialog::accept() { | 139 | void ImportDialog::accept() { |
| 140 | // do nothing if import is not enable | ||
| 141 | if (!_importButton.isEnabled()) { | ||
| 142 | return; | ||
| 143 | } | ||
| 144 | |||
| 140 | if (!fileAccepted) { | 145 | if (!fileAccepted) { |
| 141 | fileAccepted = true; | 146 | fileAccepted = true; |
| 142 | emit accepted(); | 147 | emit accepted(); |