Commit c79c5ff 1 parent df81415 commit c79c5ff Copy full SHA for c79c5ff
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -514,7 +514,7 @@ QList<GpiPortModel> DatabaseManager::getGpiPorts()
514
514
515
515
QList<GpiPortModel> models;
516
516
while (sql.next ())
517
- models.push_back (GpiPortModel (sql.value (" Id" ).toInt (),
517
+ models.push_back (GpiPortModel (sql.value (" Id" ).toInt () - 1 ,
518
518
sql.value (" RisingEdge" ).toInt () == 1 , Playout::fromString (sql.value (" Action" ).toString ())));
519
519
520
520
return models;
@@ -549,7 +549,7 @@ QList<GpoPortModel> DatabaseManager::getGpoPorts()
549
549
550
550
QList<GpoPortModel> models;
551
551
while (sql.next ())
552
- models.push_back (GpoPortModel (sql.value (" Id" ).toInt (),
552
+ models.push_back (GpoPortModel (sql.value (" Id" ).toInt () - 1 ,
553
553
sql.value (" RisingEdge" ).toInt () == 1 , sql.value (" PulseLengthMillis" ).toInt ()));
554
554
555
555
return models;
You can’t perform that action at this time.
0 commit comments