[gnome-commander] Always calculate the size of a directory, do not use the (outdated) value, fixing #13
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Always calculate the size of a directory, do not use the (outdated) value, fixing #13
- Date: Sun, 28 Nov 2021 22:18:39 +0000 (UTC)
commit c8610c0f331950cdc9e8e31c6494e7026fb61a26
Author: Uwe Scholz <u scholz83 gmx de>
Date: Sun Nov 28 23:17:11 2021 +0100
Always calculate the size of a directory, do not use the (outdated) value, fixing #13
NEWS | 1 +
doc/C/releases.xml | 3 +++
src/gnome-cmd-file.cc | 3 ---
3 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/NEWS b/NEWS
index 17f2f2b2..dcec7c75 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,7 @@ New features:
Bug fixes:
* Fixed issue #3 (Mounted devices pluged when Commander is running are not noticed)
* Fixed issue #5 ("Follow Links" option does not work when copying files)
+ * Fixed issue #13 (Directory size not updated while copying)
* Fixed issue #16 (Start-left-dir doesn't work on '.' (dot directory))
* Fixed issue #19 (FTP connections are not closed correctly)
* Fixed issue #33 (Get rid of deprecated gnome-vfs)
diff --git a/doc/C/releases.xml b/doc/C/releases.xml
index d1927b53..2a76eb07 100644
--- a/doc/C/releases.xml
+++ b/doc/C/releases.xml
@@ -35,6 +35,9 @@
<listitem>
<para>Fixed issue #5 ("Follow Links" option does not work when copying
files)</para>
</listitem>
+ <listitem>
+ <para>Fixed issue #13 (Directory size not updated while copying)</para>
+ </listitem>
<listitem>
<para>Fixed issue #16 (Start-left-dir doesn't work on '.' (dot directory))</para>
</listitem>
diff --git a/src/gnome-cmd-file.cc b/src/gnome-cmd-file.cc
index c9874e12..f9ea46b7 100644
--- a/src/gnome-cmd-file.cc
+++ b/src/gnome-cmd-file.cc
@@ -739,9 +739,6 @@ guint64 GnomeCmdFile::get_tree_size()
if (is_dotdot)
return 0;
- if (priv->tree_size != (guint64)-1)
- return priv->tree_size;
-
priv->tree_size = calc_tree_size (nullptr);
return priv->tree_size;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]