https://bugs.kde.org/show_bug.cgi?id=511102
Nicolas Fella <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|ASSIGNED |RESOLVED Latest Commit| |https://invent.kde.org/fram | |eworks/kuserfeedback/-/comm | |it/17679d4aacaa9f68400cfbd8 | |0e7ba46ef5cec4a4 --- Comment #15 from Nicolas Fella <[email protected]> --- Git commit 17679d4aacaa9f68400cfbd80e7ba46ef5cec4a4 by Nicolas Fella. Committed on 07/11/2025 at 12:10. Pushed by nicolasfella into branch 'master'. Properly handling large timeouts for encouragement timer If the last encouragement was recently then 30 days later is a long time from now. Particularly enough so that when converting it to int it will overflow and result in a negative number. We then pass that negative value to QTimer. Since Qt 6.10 that results in a timeout of 1ms, which causes the encouragement to trigger immediately. To avoid that make sure to use 64bit integers for the handling, and use QChronoTimer, which can properly handle timeouts too large for 32bit int M +11 -6 src/provider/core/provider.cpp M +5 -4 src/provider/core/provider_p.h https://invent.kde.org/frameworks/kuserfeedback/-/commit/17679d4aacaa9f68400cfbd80e7ba46ef5cec4a4 -- You are receiving this mail because: You are watching all bug changes.
