Ticket #4411: themereload_win32.patch
File themereload_win32.patch, 1.1 KB (added by , 16 years ago) |
---|
-
programs/mythfrontend/main.cpp
803 803 TV::SetEmbedPbbFunc(PlaybackBox::RunPlaybackBox); 804 804 } 805 805 806 806 #ifndef _WIN32 807 807 void signal_USR1_handler(int){ 808 808 VERBOSE(VB_GENERAL, "SIG USR1 received, reloading theme"); 809 809 RemoteSendMessage("CLEAR_SETTINGS_CACHE"); … … 813 813 gContext->removeCurrentLocation(); 814 814 gContext->ActivateSettingsCache(true); 815 815 } 816 #endif 816 817 817 818 int internal_media_init() 818 819 { … … 1421 1422 if (!RunMenu(themedir)) 1422 1423 break; 1423 1424 1425 #ifndef _WIN32 1424 1426 struct sigaction new_action, old_action; 1425 1427 /* Set up the structure to specify the new action. */ 1426 1428 new_action.sa_handler = signal_USR1_handler; 1427 1429 ::sigemptyset(&new_action.sa_mask); 1428 1430 new_action.sa_flags = 0; 1429 1431 ::sigaction (SIGUSR1, &new_action, &old_action); 1432 #endif 1430 1433 1431 1434 qApp->setMainWidget(mainWindow); 1432 1435 qApp->exec();