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

fixed some bugs with micButton

This commit is contained in:
midnight079 2014-08-19 21:15:56 +04:00 committed by Tux3 / Mlkj / !Lev.uXFMLA
parent a18ba9d7ed
commit ec1facccf8
2 changed files with 3 additions and 1 deletions

View File

@ -1525,7 +1525,7 @@ void Core::decreaseVideoBusyness()
void Core::micMuteToggle(int callId)
{
if (calls[callId].audioInput->state() == QAudio::ActiveState)
calls[callId].audioInput->stop();
calls[callId].audioInput->suspend();
else
calls[callId].audioInput->start();
}

View File

@ -569,6 +569,8 @@ void ChatForm::onHangupCallTriggered()
{
audioInputFlag = !audioInputFlag;
emit hangupCall(callId);
micButton->setObjectName("green");
micButton->style()->polish(micButton);
}
void ChatForm::onCallTriggered()