QTfrontend/ui/widget/chatwidget.cpp
changeset 14876 0f39f8efbd2e
parent 13915 6c8d4e140f27
child 15259 ebb86ed1b785
--- a/QTfrontend/ui/widget/chatwidget.cpp	Wed May 01 16:37:47 2019 +0300
+++ b/QTfrontend/ui/widget/chatwidget.cpp	Wed May 01 21:59:41 2019 +0300
@@ -521,10 +521,18 @@
     if (!isIgnored)
         printChatString(nick, QString("*** ") + tr("%1 has joined").arg(linkedNick(nick)), "Join", false);
 
-    if (notifyNick && notify && (m_helloSounds.size() > 0))
+    if (notifyNick && notify)
     {
-        SDLInteraction::instance().playSoundFile(
+        if (m_helloSounds.size() > 0)
+        {
+            SDLInteraction::instance().playSoundFile(
                             m_helloSounds.at(rand() % m_helloSounds.size()));
+        }        
+
+        if (!isInGame())
+        {
+            HWApplication::alert(this, 2000);
+        }
     }
 }