aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lumina-fileinfo/MainUI.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lumina-fileinfo/MainUI.cpp b/lumina-fileinfo/MainUI.cpp
index b2f0a9a9..481574e0 100644
--- a/lumina-fileinfo/MainUI.cpp
+++ b/lumina-fileinfo/MainUI.cpp
@@ -153,7 +153,8 @@ void MainUI::GetDirSize(const QString dirname) const {
}
else
++file_number;
- filesize += file_list[i].size();
+ if(!file_list[i].isSymLink())
+ filesize += file_list[i].size();
}
while(!head.isEmpty()) {
if(terminate_thread)
@@ -171,7 +172,8 @@ void MainUI::GetDirSize(const QString dirname) const {
}
else
++file_number;
- filesize += file_list[i].size();
+ if(!file_list[i].isSymLink())
+ filesize += file_list[i].size();
if(i%update_frequency == 0)
emit folder_size_changed(filesize, file_number, dir_number, false);
}
bgstack15