mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-29 01:16:20 -05:00
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:
parent
c0088f3e8f
commit
6c9d701506
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user