mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-30 23:50:05 +00:00 
			
		
		
		
	Resource Explorer view and model cleanup
This commit is contained in:
		
							parent
							
								
									06e33001f7
								
							
						
					
					
						commit
						f47fab196e
					
				
					 4 changed files with 4 additions and 4 deletions
				
			
		|  | @ -132,7 +132,7 @@ QModelIndex TreeModel::parent(const QModelIndex& index) const | |||
|       static_cast<const TreeItem*>(index.constInternalPointer()); | ||||
|    const TreeItem* parentItem = childItem->parent_item(); | ||||
| 
 | ||||
|    if (parentItem == root_item().get()) | ||||
|    if (parentItem == root_item().get() || parentItem == nullptr) | ||||
|    { | ||||
|       return QModelIndex(); | ||||
|    } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat