Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(groupaudio): don't set button to green while call running
Browse files Browse the repository at this point in the history
  • Loading branch information
sudden6 committed Apr 24, 2016
1 parent 5339ad9 commit 6d35515
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/widget/form/groupchatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,14 @@ void GroupChatForm::onUserListChanged()
// Enable or disable call button
if (peersCount > 1 && group->isAvGroupchat())
{
callButton->setEnabled(true);
callButton->setObjectName("green");
callButton->style()->polish(callButton);
callButton->setToolTip(tr("Start audio call"));
// don't set button to green if call running
if(!inCall)
{
callButton->setEnabled(true);
callButton->setObjectName("green");
callButton->style()->polish(callButton);
callButton->setToolTip(tr("Start audio call"));
}
}
else
{
Expand Down

0 comments on commit 6d35515

Please sign in to comment.