Fix a crash in custom notifications.
This commit is contained in:
		
							parent
							
								
									0965b06fa3
								
							
						
					
					
						commit
						aaa4db7b27
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -551,7 +551,7 @@ Notification::Notification( | ||||||
| 	auto position = computePosition(st::notifyMinHeight); | 	auto position = computePosition(st::notifyMinHeight); | ||||||
| 	updateGeometry(position.x(), position.y(), st::notifyWidth, st::notifyMinHeight); | 	updateGeometry(position.x(), position.y(), st::notifyWidth, st::notifyMinHeight); | ||||||
| 
 | 
 | ||||||
| 	_userpicLoaded = (_userpicView->image() != nullptr); | 	_userpicLoaded = !_userpicView || (_userpicView->image() != nullptr); | ||||||
| 	updateNotifyDisplay(); | 	updateNotifyDisplay(); | ||||||
| 
 | 
 | ||||||
| 	_hideTimer.setSingleShot(true); | 	_hideTimer.setSingleShot(true); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 John Preston
						John Preston