[Libreoffice-commits] core.git: Branch 'feature/gsoc14-personas' - cui/source

Rachit Gupta rachitgupta1792 at gmail.com
Wed Jun 18 09:40:19 PDT 2014


 cui/source/options/personalization.cxx |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

New commits:
commit b3ed6f893c1b2839d176977cd82ad88a9c9d9905
Author: Rachit Gupta <rachitgupta1792 at gmail.com>
Date:   Wed Jun 18 12:09:56 2014 +0530

    The selected theme is shown in the progress label.
    
    The name of the theme is displayed in the progress label whenever
    the user clicks on one of the results.
    
    Change-Id: I4810c9e5faec1b1a5156716b9a62b1256951425c

diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx
index fa5b1a3..e6307f4 100644
--- a/cui/source/options/personalization.cxx
+++ b/cui/source/options/personalization.cxx
@@ -128,8 +128,15 @@ IMPL_LINK( SelectPersonaDialog, SelectPersona, PushButton*, pButton )
         if( pButton == m_vResultList[index] )
         {
             if( !m_vPersonaSettings[index].isEmpty() )
+            {
                 m_aSelectedPersona = m_vPersonaSettings[index];
-
+                // get the persona name from the setting variable to show in the progress.
+                sal_Int32 nNameIndex = m_aSelectedPersona.indexOf( ';' );
+                OUString aName = m_aSelectedPersona.copy( 0, nNameIndex );
+                OUString aProgress( "Selected Persona: " );
+                aProgress += aName;
+                SetProgress( aProgress );
+            }
             break;
         }
     }


More information about the Libreoffice-commits mailing list