From 50438e5dc597bbe34264dd0f474ca1f6d30a0cdf Mon Sep 17 00:00:00 2001 From: anna Date: Mon, 12 Mar 2012 12:39:32 +0100 Subject: [PATCH] skip separator at the top of the popup only when no separator text is available (IDEA-82543) --- .../src/com/intellij/ui/popup/PopupFactoryImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/ui/popup/PopupFactoryImpl.java b/platform/platform-impl/src/com/intellij/ui/popup/PopupFactoryImpl.java index 0f9ea9568e0f..9860529e82e8 100644 --- a/platform/platform-impl/src/com/intellij/ui/popup/PopupFactoryImpl.java +++ b/platform/platform-impl/src/com/intellij/ui/popup/PopupFactoryImpl.java @@ -785,7 +785,7 @@ public class PopupFactoryImpl extends JBPopupFactory { else { icon = new IconWrapper(icon); } - boolean prependSeparator = !myListModel.isEmpty() && myPrependWithSeparator; + boolean prependSeparator = (!myListModel.isEmpty() || mySeparatorText != null) && myPrependWithSeparator; assert text != null : action + " has no presentation"; myListModel.add(new ActionItem(action, text, presentation.isEnabled(), icon, prependSeparator, mySeparatorText)); myPrependWithSeparator = false;