Browse Source

fix(friendwidget): Add correct index calculation

pull/4549/head
Diadlo 8 years ago
parent
commit
ad58c1767b
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727
  1. 2
      src/widget/friendwidget.cpp

2
src/widget/friendwidget.cpp

@ -309,7 +309,7 @@ void FriendWidget::updateStatusLight() @@ -309,7 +309,7 @@ void FriendWidget::updateStatusLight()
};
const bool event = frnd->getEventFlag();
const int index = static_cast<int>(frnd->getStatus()) + event;
const int index = static_cast<int>(frnd->getStatus()) * 2 + event;
statusPic.setPixmap(QPixmap(statuses[index]));
if (event) {

Loading…
Cancel
Save