From a8a7b7114d96b2013b00e9bc0ced81aad5495457 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Thu, 1 Sep 2016 21:47:05 +0200 Subject: Revert "tdf#101629: fix https://addons.mozilla.org/ case" This reverts commit 454e1ebcfc589ce82c8c2d5585e22bea1ea5fc79. Change-Id: Id296e622dc8e14bd20549325d890196d8d36b1a5 Reviewed-on: https://gerrit.libreoffice.org/28605 Tested-by: Jenkins Reviewed-by: Julien Nabet --- cui/source/options/personalization.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx index 29a7ac4c0d05..4b2658f2aab5 100644 --- a/cui/source/options/personalization.cxx +++ b/cui/source/options/personalization.cxx @@ -160,11 +160,9 @@ IMPL_LINK_TYPED( SelectPersonaDialog, SearchPersonas, Button*, pButton, void ) // 15 results so that invalid and duplicate search results whose names can't be retrieved can be skipped OUString rSearchURL = "https://services.addons.mozilla.org/en-US/firefox/api/1.5/search/" + searchTerm + "/9/15"; - sal_Int32 nIndexOfFirefox = searchTerm.indexOf( "firefox" ); - - if ( searchTerm.startsWith( "https://addons.mozilla.org/" ) && nIndexOfFirefox != -1 ) + if ( searchTerm.startsWith( "https://addons.mozilla.org/" ) ) { - searchTerm = "https://addons.mozilla.org/en-US/" + searchTerm.copy( nIndexOfFirefox ); + searchTerm = "https://addons.mozilla.org/en-US/" + searchTerm.copy( searchTerm.indexOf( "firefox" ) ); m_pSearchThread = new SearchAndParseThread( this, searchTerm, true ); } else -- cgit v1.2.3