mirror of
				https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
				synced 2023-10-19 15:58:31 +00:00 
			
		
		
		
	fixed crash if number of dvb devices changes
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user