PIDir windows drives support

git-svn-id: svn://db.shs.com.ru/pip@56 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
2015-04-01 06:56:29 +00:00
parent d60e7fad2a
commit 136e5ea040
2 changed files with 10 additions and 1 deletions

View File

@@ -72,9 +72,10 @@ void FileManager::TileDir::setContent(const PIVector<PIFile::FileInfo> & l) {
fi.flags |= PIFile::FileInfo::DotDot | PIFile::FileInfo::Dir;
entries << fi;
} else {
bool root = dir.path() == PIDir::separator;
for (int i = 0; i < l.size_s(); ++i) {
if (l[i].name() == ".") continue;
if (l[i].name() == "..") {
if (l[i].name() == ".." && !root) {
dl.push_front(l[i]);
continue;
}