[service-view] fix evaluating root contributor for drag source

GitOrigin-RevId: 5cd8a61b5448bc57e8e4afab9dd8828fe9427749
This commit is contained in:
Konstantin Aleev
2019-07-02 06:52:16 +03:00
committed by intellij-monorepo-bot
parent 53d976c226
commit f0800b05a3
@@ -110,13 +110,13 @@ class ServiceViewDragHelper {
}
@Nullable
private static ServiceViewContributor getTheOnlyContributor(List<ServiceViewItem> nodes) {
static ServiceViewContributor getTheOnlyContributor(List<ServiceViewItem> nodes) {
ServiceViewContributor result = null;
for (ServiceViewItem node : nodes) {
if (result == null) {
result = node.getContributor();
result = node.getRootContributor();
}
else if (result != node.getContributor()) {
else if (result != node.getRootContributor()) {
return null;
}
}