1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
This commit is contained in:
kushagra 2015-03-18 14:15:51 +05:30
parent de423571eb
commit 41dc562b64

View File

@ -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