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:
parent
c4baff4b04
commit
ad58c1767b
|
@ -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…
Reference in New Issue
Block a user