Преглед изворни кода

tools: check whether the importer supports the selected files

Fixes: #172
Daniele Bartolini пре 1 година
родитељ
комит
6455ec598d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      tools/level_editor/project.vala

+ 1 - 1
tools/level_editor/project.vala

@@ -643,7 +643,7 @@ public class Project
 		// Find importer callback.
 		unowned ImporterDelegate? importer = null;
 		foreach (var imp in _importers) {
-			if (imp._filter == current_filter) {
+			if (imp._filter == current_filter && imp.can_import_list(filenames)) {
 				importer = imp.delegate;
 				break;
 			}