summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/source/app/settings.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx
index 5e67ba9c8204..0d324464cf9c 100644
--- a/vcl/source/app/settings.cxx
+++ b/vcl/source/app/settings.cxx
@@ -3028,23 +3028,23 @@ StyleSettings::SetIconTheme(const OUString& theme)
OUString
StyleSettings::DetermineIconTheme() const
{
- if (mxData->mIconTheme.isEmpty())
+ OUString sTheme(mxData->mIconTheme);
+ if (sTheme.isEmpty())
{
// read from the configuration, or fallback to what the desktop wants
uno::Reference<uno::XComponentContext> xContext(comphelper::getProcessComponentContext());
if (xContext.is())
{
- mxData->mIconTheme = officecfg::Office::Common::Misc::SymbolStyle::get(xContext);
+ sTheme = officecfg::Office::Common::Misc::SymbolStyle::get(xContext);
- if (mxData->mIconTheme.isEmpty() || mxData->mIconTheme == "auto")
- mxData->mIconTheme = GetAutomaticallyChosenIconTheme();
+ if (sTheme.isEmpty() || sTheme == "auto")
+ sTheme = GetAutomaticallyChosenIconTheme();
}
}
OUString r = mxData->mIconThemeSelector->SelectIconTheme(
mxData->mIconThemeScanner->GetFoundIconThemes(),
- mxData->mIconTheme
- );
+ sTheme);
return r;
}