mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-05 19:44:57 -04:00
Fixed crash in ChatLobbyUserNotify::subMenuClicked when using "Remove All" of the chat lobby notifier.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8603 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
951a1f9454
commit
a9094f8faf
1 changed files with 2 additions and 1 deletions
|
@ -328,7 +328,8 @@ void ChatLobbyUserNotify::subMenuClicked(QAction* action)
|
||||||
if (count==0) _listMsg.erase(itCL);
|
if (count==0) _listMsg.erase(itCL);
|
||||||
emit countChanged(actionTag.cli, count);
|
emit countChanged(actionTag.cli, count);
|
||||||
} else if(actionTag.cli==0x0){
|
} else if(actionTag.cli==0x0){
|
||||||
for(itCL=_listMsg.begin();itCL!=_listMsg.end();++itCL){
|
while (!_listMsg.empty()) {
|
||||||
|
itCL = _listMsg.begin();
|
||||||
emit countChanged(itCL->first, 0);
|
emit countChanged(itCL->first, 0);
|
||||||
_listMsg.erase(itCL);
|
_listMsg.erase(itCL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue