summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-06-15 10:35:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-06-20 08:32:33 +0200
commitece3faf9a02fc2449150b066214eb84a87bd2aa8 (patch)
tree6944b729f6d0c9a18c837dc3df5afe8fe9714cde /cui
parent4ef7d89215927affc6adaeb7128184206b268266 (diff)
personalization: disable "own theme" button if we don't have any
Change-Id: I3a5bfb757361208ce4ec193698a6e87b66285906 Reviewed-on: https://gerrit.libreoffice.org/55846 Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com> Tested-by: Jenkins
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/personalization.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx
index 0eb20534931a..eac843b3bd77 100644
--- a/cui/source/options/personalization.cxx
+++ b/cui/source/options/personalization.cxx
@@ -420,6 +420,7 @@ void SvxPersonalizationTabPage::LoadDefaultImages()
GraphicFilter aFilter;
Graphic aGraphic;
sal_Int32 nIndex = 0;
+ bool foundOne = false;
while( aStream.IsOpen() && !aStream.eof() )
{
@@ -439,7 +440,10 @@ void SvxPersonalizationTabPage::LoadDefaultImages()
BitmapEx aBmp = aGraphic.GetBitmapEx();
m_vDefaultPersonaImages[nIndex]->Show();
m_vDefaultPersonaImages[nIndex++]->SetModeImage( Image( aBmp ) );
+ foundOne = true;
}
+
+ m_pDefaultPersona->Enable(foundOne);
}
void SvxPersonalizationTabPage::LoadExtensionThemes()