diff -r 3445ce5e9c79 -r 9572aae13d49 QTfrontend/chatwidget.cpp --- a/QTfrontend/chatwidget.cpp Tue Feb 09 02:03:31 2010 +0000 +++ b/QTfrontend/chatwidget.cpp Tue Feb 09 03:21:09 2010 +0000 @@ -37,7 +37,7 @@ this->gameSettings = gameSettings; this->sdli = sdli; this->notify = notify; - if(notify && gameSettings->value("audio/sound", true).toBool()) { + if(notify && gameSettings->value("audio/frontendsound", true).toBool()) { QDir tmpdir; tmpdir.cd(datadir->absolutePath()); @@ -126,13 +126,13 @@ chatText->moveCursor(QTextCursor::End); } -void HWChatWidget::nickAdded(const QString& nick) +void HWChatWidget::nickAdded(const QString& nick, bool isChief) { QListWidgetItem * item = new QListWidgetItem(nick); item->setIcon(QIcon(":/res/hh_small.png")); chatNicks->addItem(item); - if(notify && gameSettings->value("audio/sound", true).toBool()) { + if(isChief && notify && gameSettings->value("audio/frontendsound", true).toBool()) { Mix_PlayChannel(-1, sound, 0); } }