Set dynamic box name to crash annotations.
This commit is contained in:
		
							parent
							
								
									94f9bbefd7
								
							
						
					
					
						commit
						725339be33
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -10,6 +10,7 @@ | ||||||
| #include "ui/widgets/buttons.h" | #include "ui/widgets/buttons.h" | ||||||
| #include "ui/widgets/labels.h" | #include "ui/widgets/labels.h" | ||||||
| #include "ui/painter.h" | #include "ui/painter.h" | ||||||
|  | #include "base/integration.h" | ||||||
| #include "base/timer.h" | #include "base/timer.h" | ||||||
| #include "styles/style_layers.h" | #include "styles/style_layers.h" | ||||||
| #include "styles/palette.h" | #include "styles/palette.h" | ||||||
|  | @ -41,6 +42,10 @@ BoxLayerWidget::BoxLayerWidget( | ||||||
| 	_content->setParent(this); | 	_content->setParent(this); | ||||||
| 	_content->setDelegate(this); | 	_content->setDelegate(this); | ||||||
| 
 | 
 | ||||||
|  | 	base::Integration::Instance().setCrashAnnotation( | ||||||
|  | 		"BoxName", | ||||||
|  | 		QString::fromUtf8(typeid(*_content).name())); | ||||||
|  | 
 | ||||||
| 	_additionalTitle.changes( | 	_additionalTitle.changes( | ||||||
| 	) | rpl::start_with_next([=] { | 	) | rpl::start_with_next([=] { | ||||||
| 		updateSize(); | 		updateSize(); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 John Preston
						John Preston