Kaydet (Commit) 3f22f287 authored tarafından Susobhan Ghosh's avatar Susobhan Ghosh Kaydeden (comit) Adolfo Jayme Barrientos

tdf#88502 Firefox Theme URL in custom theme search

Removed "suggested" from categories label. Fixed
URL checking.

Change-Id: Ifbea40cf724c91f6af72c485d9ae7eb599afff65
Reviewed-on: https://gerrit.libreoffice.org/24716Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarAdolfo Jayme Barrientos <fitojb@ubuntu.com>
üst d7859f40
......@@ -154,8 +154,11 @@ IMPL_LINK_TYPED( SelectPersonaDialog, SearchPersonas, Button*, pButton, void )
// 15 results so that invalid and duplicate search results whose names can't be retreived can be skipped
OUString rSearchURL = "https://services.addons.allizom.org/en-US/firefox/api/1.5/search/" + searchTerm + "/9/15";
if ( searchTerm.startsWith( "https://addons.mozilla.org/en-US/firefox/addon" ) )
if ( searchTerm.startsWith( "https://addons.mozilla.org/" ) )
{
searchTerm = "https://addons.mozilla.org/en-US/" + searchTerm.copy( searchTerm.indexOf( "firefox" ) );
m_rSearchThread = new SearchAndParseThread( this, searchTerm, true );
}
else
m_rSearchThread = new SearchAndParseThread( this, rSearchURL, false );
......
......@@ -225,7 +225,7 @@
<object class="GtkLabel" id="label6">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Suggested Categories</property>
<property name="label" translatable="yes">Categories</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment