mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-07 05:46:58 +03:00
added subdirectories to iteration
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
4d93f4adb1
commit
215465e833
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ void Resource::setFile(QFileInfo file_info)
|
|||
qint64 calculateFileSize(const QFileInfo& file)
|
||||
{
|
||||
if (file.isDir()) {
|
||||
QDirIterator it(file.absoluteFilePath(), QDir::Files);
|
||||
QDirIterator it(file.absoluteFilePath(), QDir::Files, QDirIterator::Subdirectories);
|
||||
qint64 total = 0;
|
||||
while (it.hasNext()) {
|
||||
it.next();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue