From 410d5dd2baf577e110856b35bfd034cf2ee255e5 Mon Sep 17 00:00:00 2001 From: "pinkerton%aol.net" Date: Wed, 15 Sep 2004 17:44:01 +0000 Subject: [PATCH] ensure we don't think we're doing autocomplete when the url changes and the toolbar is hidden, causing it not to update at all (bug 237803) git-svn-id: svn://10.0.0.236/trunk@162375 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/camino/src/browser/AutoCompleteTextField.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/camino/src/browser/AutoCompleteTextField.mm b/mozilla/camino/src/browser/AutoCompleteTextField.mm index eb846d571ac..b3c06e3a5d4 100644 --- a/mozilla/camino/src/browser/AutoCompleteTextField.mm +++ b/mozilla/camino/src/browser/AutoCompleteTextField.mm @@ -535,7 +535,7 @@ NS_IMPL_ISUPPORTS1(AutoCompleteListener, nsIAutoCompleteListener) // need to use one of its routines to update the autocomplete status or // we could find ourselves with stale results and the popup still open. If // it doesn't have focus, we can bypass all that and just use normal routines. - if ( [[self window] firstResponder] == [self fieldEditor] ) { + if ( [self fieldEditor] && [[self window] firstResponder] == [self fieldEditor] ) { [self setStringUndoably:aURI fromLocation:0]; // updates autocomplete correctly // set insertion point to the end of the url. setStringUndoably:fromLocation: