# HG changeset patch
# User alfadur
# Date 1556737181 -10800
# Node ID 0f39f8efbd2e9e76f8f71bce432ca6b63f7bf440
# Parent  ce98c37826a7b4e5c7bc9b5b1205a6fd0126d4fa
add visual notification on room joins

diff -r ce98c37826a7 -r 0f39f8efbd2e QTfrontend/ui/widget/chatwidget.cpp
--- 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);
+        }
     }
 }