mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
fixed crash if number of dvb devices changes
This commit is contained in:
parent
9c93fbc072
commit
03f3789ee9
@ -6,6 +6,7 @@
|
||||
#include "viewhelpers.h"
|
||||
|
||||
cViewHelpers::cViewHelpers(void) {
|
||||
numDevices = 0;
|
||||
devicesInit = false;
|
||||
lastSecond = -1;
|
||||
lastMinute = -1;
|
||||
@ -36,7 +37,6 @@ bool cViewHelpers::SetDevices(bool initial, map<string,int> *intTokens, vector<m
|
||||
#ifdef DOPROFILE
|
||||
cStopWatch watch("SetDevices");
|
||||
#endif
|
||||
int numDevices = cDevice::NumDevices();
|
||||
if (!initial) {
|
||||
//check if drawing is necessary
|
||||
bool changed = false;
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
class cViewHelpers {
|
||||
private:
|
||||
int numDevices;
|
||||
bool devicesInit;
|
||||
int* lastSignalStrength;
|
||||
int* lastSignalQuality;
|
||||
|
Loading…
Reference in New Issue
Block a user