Add checks to OxFSTreeView to filter out . and .. entries
This commit is contained in:
		@@ -27,8 +27,10 @@ OxFSFile::OxFSFile(FileSystem *fs, QString path, OxFSFile *parentItem) {
 | 
				
			|||||||
			qSort(ls);
 | 
								qSort(ls);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		for (auto v : ls) {
 | 
							for (auto v : ls) {
 | 
				
			||||||
			auto ch = new OxFSFile(fs, m_path + "/" + v.name, this);
 | 
								if (v.name != "." && v.name != "..") {
 | 
				
			||||||
			m_childItems.push_back(ch);
 | 
									auto ch = new OxFSFile(fs, m_path + "/" + v.name, this);
 | 
				
			||||||
 | 
									m_childItems.push_back(ch);
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user