summaryrefslogtreecommitdiffstats
path: root/src/gvcore/timeutils.cpp
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2024-02-17 22:22:18 +0300
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-02-22 18:29:30 +0900
commit801c90b6c2cb7b3632aa9d20da59b80b104d2c85 (patch)
treec894b2a503e5c8de59ef4f59407a1d88d5d831f3 /src/gvcore/timeutils.cpp
parent8064b0ca876e973bc855eb6ecbf6b63c1d0cdad8 (diff)
downloadgwenview-801c90b6c2cb7b3632aa9d20da59b80b104d2c85.tar.gz
gwenview-801c90b6c2cb7b3632aa9d20da59b80b104d2c85.zip
Load file metadata asynchronously
Synchronous load of metadata resulted in big delays when opening a directory with substantial amount of files. Closes: https://mirror.git.trinitydesktop.org/gitea/TDE/gwenview/issues/17 Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit 8c522cac3456c10c5937c98bb6866323639aff51)
Diffstat (limited to 'src/gvcore/timeutils.cpp')
-rw-r--r--src/gvcore/timeutils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gvcore/timeutils.cpp b/src/gvcore/timeutils.cpp
index 3995833..c917232 100644
--- a/src/gvcore/timeutils.cpp
+++ b/src/gvcore/timeutils.cpp
@@ -30,7 +30,7 @@ namespace Gwenview {
namespace TimeUtils {
time_t getTime(const KFileItem* item) {
- const KFileMetaInfo& info = item->metaInfo();
+ const KFileMetaInfo& info = item->metaInfo(/*autogen=*/false);
if (info.isValid()) {
TQVariant value = info.value("Date/time");
TQDateTime dt = value.toDateTime();