Summary: | Remote File Previews are not shown when Limit is set to 4096MiB or more | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kio | Reporter: | brainpower <f.baumg> |
Component: | general | Assignee: | KIO Bugs <kio-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | a.samirh78, kdelibs-bugs, nate |
Priority: | NOR | ||
Version: | git master | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/frameworks/kio/-/commit/872f8ea2f8fc355fc906a5c966173d1bcadaef3d | Version Fixed In: | 5.93 |
Attachments: | path to fix the issue |
Description
brainpower
2022-03-29 19:32:21 UTC
Good catch. I don't think it's a bug in QVariant or KConfig; AFAICS, the deduced template type is int, and the value is to big for an int (KIO::filesize_t is usigned long long), so QVariant returns 0 (I couldn't follow the code to verify this, I got lost in the forest of templates in QVariant). The correct fix is indeed passing the correct type to readEntry() to get the correct type back. About the issue you got, I'll tell Sysadmin team, hopefully they can help you with that issue. I was able to fork and create a MR now, so here it is: https://invent.kde.org/frameworks/kio/-/merge_requests/800 That was merged! |