mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fixes #1091
This commit is contained in:
parent
de423571eb
commit
41dc562b64
|
@ -704,6 +704,8 @@ void Widget::newMessageAlert(GenericChatroomWidget* chat)
|
||||||
bool inactiveWindow = isMinimized() || !isActiveWindow();
|
bool inactiveWindow = isMinimized() || !isActiveWindow();
|
||||||
if (!inactiveWindow && activeChatroomWidget != nullptr && chat == activeChatroomWidget)
|
if (!inactiveWindow && activeChatroomWidget != nullptr && chat == activeChatroomWidget)
|
||||||
return;
|
return;
|
||||||
|
if (ui->statusButton->property("status").toString() == "busy")
|
||||||
|
return;
|
||||||
|
|
||||||
QApplication::alert(this);
|
QApplication::alert(this);
|
||||||
|
|
||||||
|
@ -732,6 +734,8 @@ void Widget::newMessageAlert(GenericChatroomWidget* chat)
|
||||||
|
|
||||||
void Widget::playRingtone()
|
void Widget::playRingtone()
|
||||||
{
|
{
|
||||||
|
if (ui->statusButton->property("status").toString() == "busy")
|
||||||
|
return;
|
||||||
QApplication::alert(this);
|
QApplication::alert(this);
|
||||||
|
|
||||||
static QFile sndFile1(":audio/ToxicIncomingCall.pcm"); // for whatever reason this plays slower/downshifted from what any other program plays the file as... but whatever
|
static QFile sndFile1(":audio/ToxicIncomingCall.pcm"); // for whatever reason this plays slower/downshifted from what any other program plays the file as... but whatever
|
||||||
|
|
Loading…
Reference in New Issue
Block a user