comments: Only send signal on removal.

This commit is contained in:
Michael Friedrich 2013-08-12 11:07:48 +02:00
parent 3c0b8b9d5a
commit 478e42dbde
1 changed files with 4 additions and 2 deletions

View File

@ -277,11 +277,12 @@ void Service::RemoveCommentsByType(int type)
comments->Remove(id);
}
OnCommentsChanged(GetSelf(), Empty, CommentChangedDeleted);
ObjectLock olock(this);
Touch("comments");
}
OnCommentsChanged(GetSelf(), Empty, CommentChangedDeleted);
}
void Service::RemoveExpiredComments(void)
@ -309,11 +310,12 @@ void Service::RemoveExpiredComments(void)
comments->Remove(id);
}
OnCommentsChanged(GetSelf(), Empty, CommentChangedDeleted);
ObjectLock olock(this);
Touch("comments");
}
OnCommentsChanged(GetSelf(), Empty, CommentChangedDeleted);
}
void Service::CommentsExpireTimerHandler(void)