Git: fix AWT access only assertion
authorirengrig <Irina.Chernushina@jetbrains.com>
Wed, 28 Apr 2010 08:37:31 +0000 (12:37 +0400)
committerirengrig <Irina.Chernushina@jetbrains.com>
Wed, 28 Apr 2010 08:37:31 +0000 (12:37 +0400)
plugins/git4idea/src/git4idea/history/browser/GitProjectLogManager.java

index f15d74634f39b79ff971cd8a5ba5626809a2038f..be594b46c8fdb13674862c094c95352637fc2e4c 100644 (file)
@@ -142,7 +142,11 @@ public class GitProjectLogManager implements ProjectComponent {
             //should not
           }
           public void consume(final String caption) {
-            content.setDisplayName(caption);
+            new AbstractCalledLater(myProject, ModalityState.NON_MODAL) {
+              public void run() {
+                content.setDisplayName(caption);
+              }
+            }.callMe();
           }
         });
       }