gui/themes: no need to memcpy a theme, just assign

Origin commit data
------------------
Branch: ni/coolstream
Commit: 43809987ac
Author: martii <m4rtii@gmx.de>
Date: 2014-01-11 (Sat, 11 Jan 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2014-01-11 15:03:30 +01:00
committed by [CST] Focus
parent bca9371e65
commit 82a6724501

View File

@@ -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);