cui/source/options/personalization.cxx   |    5 ++++-
 cui/uiconfig/ui/select_persona_dialog.ui |    2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

New commits:
commit 3f22f287b4ae80c5879f87071be93c3ea5d1001c
Author: Susobhan Ghosh <susobhan...@gmail.com>
Date:   Sat May 7 19:08:15 2016 +0530

    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/24716
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com>

diff --git a/cui/source/options/personalization.cxx 
b/cui/source/options/personalization.cxx
index 1b668b6..486529d 100644
--- a/cui/source/options/personalization.cxx
+++ b/cui/source/options/personalization.cxx
@@ -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 );
 
diff --git a/cui/uiconfig/ui/select_persona_dialog.ui 
b/cui/uiconfig/ui/select_persona_dialog.ui
index 600bd8d..230f3b2 100644
--- a/cui/uiconfig/ui/select_persona_dialog.ui
+++ b/cui/uiconfig/ui/select_persona_dialog.ui
@@ -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>
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to