Ticket #4411: themereload_win32.patch

File themereload_win32.patch, 1.1 KB (added by andrei@…, 14 years ago)
  • programs/mythfrontend/main.cpp

     
    803803    TV::SetEmbedPbbFunc(PlaybackBox::RunPlaybackBox);
    804804}
    805805
    806 
     806#ifndef _WIN32
    807807void signal_USR1_handler(int){
    808808      VERBOSE(VB_GENERAL, "SIG USR1 received, reloading theme");       
    809809      RemoteSendMessage("CLEAR_SETTINGS_CACHE");
     
    813813      gContext->removeCurrentLocation();
    814814      gContext->ActivateSettingsCache(true);
    815815}
     816#endif
    816817
    817818int internal_media_init()
    818819{
     
    14211422        if (!RunMenu(themedir))
    14221423            break;
    14231424
     1425#ifndef _WIN32
    14241426        struct sigaction new_action, old_action;
    14251427        /* Set up the structure to specify the new action. */
    14261428        new_action.sa_handler = signal_USR1_handler;
    14271429        ::sigemptyset(&new_action.sa_mask);
    14281430        new_action.sa_flags = 0;
    14291431        ::sigaction (SIGUSR1, &new_action, &old_action);
     1432#endif
    14301433
    14311434        qApp->setMainWidget(mainWindow);
    14321435        qApp->exec();