QTfrontend/ui/widget/chatwidget.cpp
changeset 8179 a1ffcb559f99
parent 8049 133e22b5c410
child 8395 0b357c57e01c
--- a/QTfrontend/ui/widget/chatwidget.cpp	Sun Dec 02 01:25:11 2012 +0400
+++ b/QTfrontend/ui/widget/chatwidget.cpp	Sun Dec 02 01:26:00 2012 +0400
@@ -177,7 +177,7 @@
 }
 
 
-HWChatWidget::HWChatWidget(QWidget* parent, QSettings * gameSettings, bool notify) :
+HWChatWidget::HWChatWidget(QWidget* parent, bool notify) :
     QWidget(parent),
     mainLayout(this)
 {
@@ -187,7 +187,6 @@
     m_isAdmin = false;
     m_autoKickEnabled = false;
 
-    if(gameSettings->value("frontend/sound", true).toBool())
     {
         QStringList vpList =
              QStringList() << "Classic" << "Default" << "Mobster" << "Russian";
@@ -281,6 +280,10 @@
     clear();
 }
 
+void HWChatWidget::setSettings(QSettings * settings)
+{
+    gameSettings = settings;
+}
 
 void HWChatWidget::linkClicked(const QUrl & link)
 {