Fix bug when opening File Editor
authorlaurent
Tue, 31 Jul 2012 17:38:18 +0200
changeset 796 92071c4b85e9
parent 795 afcc13faecd5
child 797 61280a7d9ff2
Fix bug when opening File Editor
ProjectController.py
--- a/ProjectController.py	Sun Jul 29 19:33:52 2012 +0200
+++ b/ProjectController.py	Tue Jul 31 17:38:18 2012 +0200
@@ -1001,8 +1001,8 @@
                 if os.path.isfile(filepath):
                     file_extension = os.path.splitext(filepath)[1]
                         
-                    editors = dict([(editor_name, editor)
-                                    for extension, editor_name, editor in features.file_editors
+                    editors = dict([(edit_name, edit_class)
+                                    for extension, edit_name, edit_class in features.file_editors
                                     if extension == file_extension])
                     
                     if editor_name == "":