--- 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;
}