1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(friendwidget): Add correct index calculation

This commit is contained in:
Diadlo 2017-07-29 19:38:34 +03:00
parent c4baff4b04
commit ad58c1767b
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -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) {