diff options
author | louis <louis.braun@gmx.de> | 2014-10-26 08:30:21 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2014-10-26 08:30:21 +0100 |
commit | 2129df34cb48d04b15a7aab0afbb5246a01cb0d4 (patch) | |
tree | f1ddf49d8e992ac1e79d9ccaf6b2ae62be1c610d /views/viewhelpers.c | |
parent | 52d9280c6603edaa24f1e5a3d4abda8983d749ea (diff) | |
download | vdr-plugin-skindesigner-2129df34cb48d04b15a7aab0afbb5246a01cb0d4.tar.gz vdr-plugin-skindesigner-2129df34cb48d04b15a7aab0afbb5246a01cb0d4.tar.bz2 |
changed devices list, device numbers start with 0
Diffstat (limited to 'views/viewhelpers.c')
-rw-r--r-- | views/viewhelpers.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/views/viewhelpers.c b/views/viewhelpers.c index b97a7a3..d08d6f2 100644 --- a/views/viewhelpers.c +++ b/views/viewhelpers.c @@ -74,10 +74,11 @@ bool cViewHelpers::SetDevices(bool initial, map<string,int> *intTokens, vector<m if (!device || !device->NumProvidedSystems()) { continue; } - actualNumDevices++; + map< string, string > deviceVals; stringstream strNum; strNum << actualNumDevices; + actualNumDevices++; deviceVals.insert(pair< string, string >("devices[num]", strNum.str())); deviceVals.insert(pair< string, string >("devices[type]", *(device->DeviceType()))); cCamSlot *camSlot = device->CamSlot(); |