Skip to content

Commit

Permalink
libappfw: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Feb 20, 2014
1 parent 9d2520d commit 4b7fd40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions doomsday/libappfw/src/vr/oculusrift.cpp
Expand Up @@ -271,6 +271,8 @@ void OculusRift::setPredictionLatency(float latency)
{
d->oculusTracker->setLatency(latency);
}
#else
DENG2_UNUSED(latency);
#endif
}

Expand Down
3 changes: 1 addition & 2 deletions doomsday/libappfw/src/widgets/tabwidget.cpp
Expand Up @@ -83,10 +83,9 @@ DENG2_PIMPL(TabWidget)

void setCurrent(ui::Data::Pos pos)
{
if(current != pos)
if(current != pos && pos < buttons->items().size())
{
current = pos;
DENG2_ASSERT(current < buttons->items().size());
updateSelected();
emit self.currentTabChanged();
}
Expand Down

0 comments on commit 4b7fd40

Please sign in to comment.