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

Blink taskbar icon and window icon only when window is inactive.

This commit is contained in:
rku 2015-12-15 19:03:05 +02:00
parent aa20df7144
commit 63f7dee6cf

View File

@ -1222,9 +1222,12 @@ bool Widget::newMessageAlert(QWidget* currentWindow, bool isActive, bool sound,
return false; return false;
if (notify) if (notify)
{
if (inactiveWindow)
{ {
QApplication::alert(currentWindow); QApplication::alert(currentWindow);
eventFlag = true; eventFlag = true;
}
if (Settings::getInstance().getShowWindow()) if (Settings::getInstance().getShowWindow())
{ {