Ticket #3830: mythlcdserver.patch

File mythlcdserver.patch, 1.7 KB (added by anonymous, 13 years ago)
  • programs/mythlcdserver/lcdprocclient.cpp

     
    104104    connect(showMessageTimer, SIGNAL(timeout()), this,
    105105            SLOT(removeStartupMessage()));
    106106
     107    updateRecInfoTimer = new QTimer(this);
     108    connect(updateRecInfoTimer, SIGNAL(timeout()), this,
     109            SLOT(updateRecordingList()));
     110
    107111    gContext->addListener(this);
    108112
    109113    isRecording = false;
     
    22652269
    22662270        if (me->Message().left(21) == "RECORDING_LIST_CHANGE")
    22672271        {
    2268             if (lcd_showrecstatus)
     2272            if (lcd_showrecstatus && !updateRecInfoTimer->isActive())
    22692273            {
     2274               if (debug_level > 1)
     2275                   VERBOSE(VB_GENERAL, "LCDProcClient: Received recording list change");
     2276
    22702277                // we can't query the backend from inside the customEvent
    2271                 // so fire the recording list update from a timer  
    2272                 QTimer::singleShot(500, this, SLOT(updateRecordingList()));
     2278                // so fire the recording list update from a timer
     2279                updateRecInfoTimer->start(500, true);
    22732280            }
    22742281        }
    22752282    }
  • programs/mythlcdserver/lcdprocclient.h

     
    142142    QTimer *recStatusTimer;
    143143    QTimer *scrollListTimer;
    144144    QTimer *showMessageTimer;
     145    QTimer *updateRecInfoTimer;
    145146
    146147    void setWidth(unsigned int);
    147148    void setHeight(unsigned int);