From 801c90b6c2cb7b3632aa9d20da59b80b104d2c85 Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Sat, 17 Feb 2024 22:22:18 +0300 Subject: 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 (cherry picked from commit 8c522cac3456c10c5937c98bb6866323639aff51) --- src/gvcore/timeutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gvcore/timeutils.cpp') 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(); -- cgit v1.2.1