call actions: fix iteration
Iterating over the UserActionModel actions was going one step too far.
It caused the ACCEPT button to be hidden for incoming calls.
Change-Id: Ia84ee0e86396cdca70268ebc2e90c3aefc2170c0
Tuleap: #199
diff --git a/src/CurrentCallVC.mm b/src/CurrentCallVC.mm
index ca20354..220d317 100644
--- a/src/CurrentCallVC.mm
+++ b/src/CurrentCallVC.mm
@@ -112,7 +112,7 @@
- (void) updateAllActions
{
- for(int i = 0 ; i <= CallModel::instance().userActionModel()->rowCount() ; i++) {
+ for (int i = 0 ; i < CallModel::instance().userActionModel()->rowCount() ; i++) {
[self updateActionAtIndex:i];
}
}