mirror of
				https://github.com/RetroShare/RetroShare.git
				synced 2025-10-30 22:29:00 -04:00 
			
		
		
		
	Fixed crash in ChatMsgItem::removeItem when "mParent == NULL".
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8605 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
		
							parent
							
								
									f36b12c90f
								
							
						
					
					
						commit
						737da1201d
					
				
					 1 changed files with 8 additions and 5 deletions
				
			
		|  | @ -163,12 +163,15 @@ void ChatMsgItem::removeItem() | |||
| 	std::cerr << std::endl; | ||||
| #endif | ||||
| 
 | ||||
| 	mParent->lockLayout(this, true); | ||||
| 	hide(); | ||||
| 	mParent->lockLayout(this, false); | ||||
| 	if (mParent) { | ||||
| 		mParent->lockLayout(this, true); | ||||
| 	} | ||||
| 
 | ||||
| 	hide(); | ||||
| 
 | ||||
| 	if (mParent) { | ||||
| 		mParent->lockLayout(this, false); | ||||
| 
 | ||||
| 	if (mParent) | ||||
| 	{ | ||||
| 		mParent->deleteFeedItem(this, mFeedId); | ||||
| 	} | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 thunder2
						thunder2