forgot ifs in notifyQt

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5170 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2012-05-15 20:32:36 +00:00
parent c0088f3e8f
commit 6c9d701506

View File

@ -113,6 +113,11 @@ NotifyQt::NotifyQt() : cDialog(NULL)
void NotifyQt::notifyErrorMsg(int list, int type, std::string msg)
{
{
QMutexLocker m(&_mutex) ;
if(!_enabled)
return ;
}
emit errorOccurred(list,type,QString::fromUtf8(msg.c_str())) ;
}
@ -279,6 +284,11 @@ void NotifyQt::notifyOwnStatusMessageChanged()
void NotifyQt::notifyPeerHasNewAvatar(std::string peer_id)
{
{
QMutexLocker m(&_mutex) ;
if(!_enabled)
return ;
}
#ifdef NOTIFY_DEBUG
std::cerr << "notifyQt: notification of new avatar." << std::endl ;
#endif