mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 05:32:44 +00:00 
			
		
		
		
	LibGUI+Userland: Make SortingProxyModel::create() return ErrorOr
Unfortunately, most of the users are inside constructors, (and two others are inside callback lambdas) so the error can't propagate, but that can be improved later.
This commit is contained in:
		
							parent
							
								
									c72a996542
								
							
						
					
					
						commit
						f6633a1026
					
				
					 11 changed files with 20 additions and 16 deletions
				
			
		|  | @ -132,7 +132,7 @@ void DirectoryView::handle_activation(GUI::ModelIndex const& index) | |||
| DirectoryView::DirectoryView(Mode mode) | ||||
|     : m_mode(mode) | ||||
|     , m_model(GUI::FileSystemModel::create({})) | ||||
|     , m_sorting_model(GUI::SortingProxyModel::create(m_model)) | ||||
|     , m_sorting_model(MUST(GUI::SortingProxyModel::create(m_model))) | ||||
| { | ||||
|     set_active_widget(nullptr); | ||||
|     set_grabbable_margins(2); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Sam Atkins
						Sam Atkins