mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Fixed exception when closing Slic3r
This commit is contained in:
		
							parent
							
								
									1979ba0e0f
								
							
						
					
					
						commit
						6d5d4e7c24
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -2426,10 +2426,13 @@ void Tab::OnTreeSelChange(wxTreeEvent& event) | |||
| 	wxWindowUpdateLocker noUpdates(this); | ||||
| #endif | ||||
| 
 | ||||
|     if (m_pages.empty()) | ||||
|         return; | ||||
| 
 | ||||
| 	Page* page = nullptr; | ||||
|     const auto sel_item = m_treectrl->GetSelection(); | ||||
|     const auto selection = sel_item ? m_treectrl->GetItemText(sel_item) : ""; | ||||
| 	for (auto p : m_pages) | ||||
|     for (auto p : m_pages) | ||||
| 		if (p->title() == selection) | ||||
| 		{ | ||||
| 			page = p.get(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Enrico Turri
						Enrico Turri