From 18e0b5c35fde77d514b003be90eceaf85158713d Mon Sep 17 00:00:00 2001 From: "edward.lee%engineering.uiuc.edu" Date: Wed, 30 Jan 2008 23:23:50 +0000 Subject: [PATCH] Bug 414257 - Stop searching for autocomplete results that won't be displayed. r=sspitzer, a1.9=beltzner, a1.9b3=beltzner git-svn-id: svn://10.0.0.236/trunk@244565 18797224-902f-48f8-a5cc-f745e15eee43 --- .../toolkit/components/places/src/nsNavHistory.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mozilla/toolkit/components/places/src/nsNavHistory.cpp b/mozilla/toolkit/components/places/src/nsNavHistory.cpp index a57922d9759..cab20ee0f74 100644 --- a/mozilla/toolkit/components/places/src/nsNavHistory.cpp +++ b/mozilla/toolkit/components/places/src/nsNavHistory.cpp @@ -1668,12 +1668,12 @@ nsNavHistory::LoadPrefs(PRBool aInitializing) PRBool oldCompleteOnlyTyped = mAutoCompleteOnlyTyped; mPrefBranch->GetBoolPref(PREF_AUTOCOMPLETE_ONLY_TYPED, &mAutoCompleteOnlyTyped); - mPrefBranch->GetBoolPref(PREF_AUTOCOMPLETE_MAX_RICH_RESULTS, - &mAutoCompleteMaxResults); - mPrefBranch->GetBoolPref(PREF_AUTOCOMPLETE_SEARCH_CHUNK_SIZE, - &mAutoCompleteSearchChunkSize); - mPrefBranch->GetBoolPref(PREF_AUTOCOMPLETE_SEARCH_TIMEOUT, - &mAutoCompleteSearchTimeout); + mPrefBranch->GetIntPref(PREF_AUTOCOMPLETE_MAX_RICH_RESULTS, + &mAutoCompleteMaxResults); + mPrefBranch->GetIntPref(PREF_AUTOCOMPLETE_SEARCH_CHUNK_SIZE, + &mAutoCompleteSearchChunkSize); + mPrefBranch->GetIntPref(PREF_AUTOCOMPLETE_SEARCH_TIMEOUT, + &mAutoCompleteSearchTimeout); if (!aInitializing && oldCompleteOnlyTyped != mAutoCompleteOnlyTyped) { // update the autocomplete statements if the option has changed. nsresult rv = CreateAutoCompleteQueries();