summaryrefslogtreecommitdiff
path: root/cui/source/options/personalization.cxx
diff options
context:
space:
mode:
authorRachit Gupta <rachitgupta1792@gmail.com>2014-06-18 12:09:56 +0530
committerJan Holesovsky <kendy@collabora.com>2014-08-14 19:43:28 +0200
commit6f2136f5832c449d1f4eaa11e089e473ce94c964 (patch)
tree252a6a835b35aafebff181936c5e955783eb2b64 /cui/source/options/personalization.cxx
parent7631fe63e10b1cb102b39c9ecb430499812ed2ab (diff)
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
Diffstat (limited to 'cui/source/options/personalization.cxx')
-rw-r--r--cui/source/options/personalization.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx
index 9cd0021c2a59..928e32c9e117 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;
}
}