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:
parent
5339ad978b
commit
6d3551548b
|
@ -218,12 +218,16 @@ void GroupChatForm::onUserListChanged()
|
||||||
|
|
||||||
// Enable or disable call button
|
// Enable or disable call button
|
||||||
if (peersCount > 1 && group->isAvGroupchat())
|
if (peersCount > 1 && group->isAvGroupchat())
|
||||||
|
{
|
||||||
|
// don't set button to green if call running
|
||||||
|
if(!inCall)
|
||||||
{
|
{
|
||||||
callButton->setEnabled(true);
|
callButton->setEnabled(true);
|
||||||
callButton->setObjectName("green");
|
callButton->setObjectName("green");
|
||||||
callButton->style()->polish(callButton);
|
callButton->style()->polish(callButton);
|
||||||
callButton->setToolTip(tr("Start audio call"));
|
callButton->setToolTip(tr("Start audio call"));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
callButton->setEnabled(false);
|
callButton->setEnabled(false);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user