Merge remote-tracking branch 'origin/master'
authorDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Mon, 17 Feb 2014 13:14:57 +0000 (14:14 +0100)
committerDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Mon, 17 Feb 2014 13:14:57 +0000 (14:14 +0100)
python/ide/src/com/jetbrains/python/PyCharmInitialConfigurator.java

index e87d82106fbb13fdf9c6d6217edd4a9acb637e5b..091a67005a75c08ed07d4ef628e4afa4d50029eb 100644 (file)
@@ -55,10 +55,15 @@ public class PyCharmInitialConfigurator {
       propertiesComponent.setValue("PyCharm.InitialConfiguration.V3", "true");
       UISettings.getInstance().SHOW_MEMORY_INDICATOR = false;
       final String ignoredFilesList = fileTypeManager.getIgnoredFilesList();
-      ApplicationManager.getApplication().runWriteAction(new Runnable() {
+      ApplicationManager.getApplication().invokeLater(new Runnable() {
         @Override
         public void run() {
-          FileTypeManager.getInstance().setIgnoredFilesList(ignoredFilesList + ";*$py.class");
+          ApplicationManager.getApplication().runWriteAction(new Runnable() {
+            @Override
+            public void run() {
+              FileTypeManager.getInstance().setIgnoredFilesList(ignoredFilesList + ";*$py.class");
+            }
+          });
         }
       });
     }