QTfrontend/ui/widget/chatwidget.cpp
changeset 6205 7764cbe4ddd7
parent 6202 8e3f006b9b1e
child 6214 c06b7e2eb7a4
--- a/QTfrontend/ui/widget/chatwidget.cpp	Tue Oct 25 13:30:02 2011 +0400
+++ b/QTfrontend/ui/widget/chatwidget.cpp	Tue Oct 25 19:46:59 2011 +0200
@@ -102,22 +102,14 @@
 QString * HWChatWidget::s_styleSheet = NULL;
 QStringList * HWChatWidget::s_displayNone = NULL;
 bool HWChatWidget::s_isTimeStamped = true;
-QMutex HWChatWidget::s_styleSheetMutex;
 
 const QString & HWChatWidget::styleSheet()
 {
-    s_styleSheetMutex.lock();
-
     if (s_styleSheet != NULL)
-    {
-        s_styleSheetMutex.unlock();
         return *s_styleSheet;
-    }
 
     setStyleSheet();
 
-    s_styleSheetMutex.unlock();
-
     return *s_styleSheet;
 }