mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
gui/themes: no need to memcpy a theme, just assign
This commit is contained in:
@@ -188,9 +188,9 @@ int CThemes::Show()
|
|||||||
void CThemes::rememberOldTheme(bool remember)
|
void CThemes::rememberOldTheme(bool remember)
|
||||||
{
|
{
|
||||||
if ( remember ) {
|
if ( remember ) {
|
||||||
memcpy(&oldTheme, &g_settings.theme, sizeof(SNeutrinoTheme));
|
oldTheme = g_settings.theme;
|
||||||
} else {
|
} else {
|
||||||
memcpy(&g_settings.theme, &oldTheme, sizeof(SNeutrinoTheme));
|
g_settings.theme = oldTheme;
|
||||||
|
|
||||||
notifier = new CColorSetupNotifier;
|
notifier = new CColorSetupNotifier;
|
||||||
notifier->changeNotify(NONEXISTANT_LOCALE, NULL);
|
notifier->changeNotify(NONEXISTANT_LOCALE, NULL);
|
||||||
|
Reference in New Issue
Block a user