mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-13 05:37:42 +02:00
added subdirectories to iteration
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
@ -22,7 +22,7 @@ void Resource::setFile(QFileInfo file_info)
|
|||||||
qint64 calculateFileSize(const QFileInfo& file)
|
qint64 calculateFileSize(const QFileInfo& file)
|
||||||
{
|
{
|
||||||
if (file.isDir()) {
|
if (file.isDir()) {
|
||||||
QDirIterator it(file.absoluteFilePath(), QDir::Files);
|
QDirIterator it(file.absoluteFilePath(), QDir::Files, QDirIterator::Subdirectories);
|
||||||
qint64 total = 0;
|
qint64 total = 0;
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
it.next();
|
it.next();
|
||||||
|
Reference in New Issue
Block a user