From 2129df34cb48d04b15a7aab0afbb5246a01cb0d4 Mon Sep 17 00:00:00 2001 From: louis Date: Sun, 26 Oct 2014 08:30:21 +0100 Subject: changed devices list, device numbers start with 0 --- views/viewhelpers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'views') 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 *intTokens, vectorNumProvidedSystems()) { 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(); -- cgit v1.2.3