From 7ecf1dd611f0dcd37047bd26d55cc613355af721 Mon Sep 17 00:00:00 2001 From: andrey zaytsev Date: Mon, 28 Feb 2011 16:08:46 +0300 Subject: [PATCH] CIDR-370 find in path is broken --- platform/lang-api/src/com/intellij/find/FindModel.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platform/lang-api/src/com/intellij/find/FindModel.java b/platform/lang-api/src/com/intellij/find/FindModel.java index 0d50acd41097..a0a42d61be05 100644 --- a/platform/lang-api/src/com/intellij/find/FindModel.java +++ b/platform/lang-api/src/com/intellij/find/FindModel.java @@ -16,7 +16,6 @@ package com.intellij.find; import com.intellij.openapi.diagnostic.Logger; -import com.intellij.openapi.util.Comparing; import com.intellij.openapi.util.UserDataHolderBase; import com.intellij.openapi.util.text.StringUtil; import com.intellij.psi.search.SearchScope; @@ -713,7 +712,7 @@ public class FindModel extends UserDataHolderBase implements Cloneable { } public void setCustomScope(final SearchScope customScope) { - boolean changed = Comparing.equal(this.customScope, customScope); + boolean changed = this.customScope != null ? this.customScope.equals(customScope) : (customScope != null); this.customScope = customScope; if (changed) { notifyObservers();