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

fix(groupaudio): don't set button to green while call running

This commit is contained in:
sudden6 2016-04-24 13:12:02 +02:00
parent 5339ad978b
commit 6d3551548b
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -219,10 +219,14 @@ void GroupChatForm::onUserListChanged()
// Enable or disable call button // Enable or disable call button
if (peersCount > 1 && group->isAvGroupchat()) if (peersCount > 1 && group->isAvGroupchat())
{ {
callButton->setEnabled(true); // don't set button to green if call running
callButton->setObjectName("green"); if(!inCall)
callButton->style()->polish(callButton); {
callButton->setToolTip(tr("Start audio call")); callButton->setEnabled(true);
callButton->setObjectName("green");
callButton->style()->polish(callButton);
callButton->setToolTip(tr("Start audio call"));
}
} }
else else
{ {