summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2016-09-01 21:47:05 +0200
committerJulien Nabet <serval2412@yahoo.fr>2016-09-02 05:10:20 +0000
commita8a7b7114d96b2013b00e9bc0ced81aad5495457 (patch)
tree4a9e21f9cac74a2e799116510ec29a6f988697b6
parentc9f445d1dee474cf6e7435ba176318735aa2ae67 (diff)
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 <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
-rw-r--r--cui/source/options/personalization.cxx6
1 files 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