mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-05 05:12:51 -04:00
removed infinite loop when openning a rscollection file
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8135 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
68d25b324a
commit
20deecd6d3
1 changed files with 35 additions and 30 deletions
|
@ -530,8 +530,13 @@ void RsCollectionDialog::directoryLoaded(QString dirLoaded)
|
|||
}
|
||||
break;
|
||||
}
|
||||
if (lastDir.absoluteFilePath() == lastDir.absolutePath()) break;
|
||||
lastDir = lastDir.absolutePath();
|
||||
//std::cerr << "lastDir = " << lastDir.absoluteFilePath().toStdString() << std::endl;
|
||||
|
||||
QDir c = lastDir.dir() ;
|
||||
if(!c.cdUp())
|
||||
break ;
|
||||
|
||||
lastDir = QFileInfo(c.path());
|
||||
} while (true); //(lastDir.absoluteFilePath() != lastDir.absolutePath());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue