inspection tool configurable: find first global profile before invoke profiles render...
authorDmitry Batkovich <dmitry.batkovich@jetbrains.com>
Wed, 25 May 2016 13:17:54 +0000 (16:17 +0300)
committerDmitry Batkovich <dmitry.batkovich@jetbrains.com>
Wed, 25 May 2016 13:17:54 +0000 (16:17 +0300)
platform/lang-impl/src/com/intellij/profile/codeInspection/ui/header/ProfilesConfigurableComboBox.java

index 62de66d890c1e435c3b661ef2555db81e44056f2..e7cfb5ecc32b5bfd1fcd904e8b1c7abb8d4b8894 100644 (file)
@@ -136,8 +136,8 @@ abstract class ProfilesConfigurableComboBox extends JPanel {
     for (InspectionProfileImpl profile : profiles) {
       myComboModel.add(profile);
     }
-    myProfilesComboBox.setSelectedIndex(0);
     findFirstGlobalProfile();
+    myProfilesComboBox.setSelectedIndex(0);
   }
 
   void addProfile(InspectionProfileImpl inspectionProfile) {