Bug 511212

Summary: Won game does not declare a win
Product: [Applications] kpat Reporter: Todd Robinson <kde.delay487>
Component: generalAssignee: Stephan Kulow <coolo>
Status: REPORTED ---    
Severity: normal CC: kde-games-bugs-null
Priority: NOR    
Version First Reported In: 25.08.2   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: This is the state the game was in when the win should have been declared.

Description Todd Robinson 2025-10-27 14:07:24 UTC
Created attachment 186228 [details]
This is the state the game was in when the win should have been declared.

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY


STEPS TO REPRODUCE
1. Open kpat
2. Choose Golf
3. Play Gold until all cards have successfully been moved from the tableau to the foundation

OBSERVED RESULT
The game does not declare a  win.

EXPECTED RESULT
Once the last card has been moved from the tableau to the foundation, it should declare the game a win.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.19.0
Qt Version: 6.9.2

ADDITIONAL INFORMATION
fastfetch output:
OS: Fedora Linux 42 (KDE Plasma Desktop Edition) x86_64
Kernel: Linux 6.17.4-200.fc42.x86_64
Uptime: 1 hour, 35 mins
Packages: 2513 (rpm), 27 (flatpak)
Shell: bash 5.2.37
Display (HP 23es): 1920x1080 @ 60 Hz in 23" [External]
DE: KDE Plasma 6.4.5
WM: KWin (Wayland)
WM Theme: Breeze
Theme: Breeze (Light) [Qt], Breeze [GTK3]
Icons: breeze [Qt], breeze [GTK3/4]
Font: Inter (10pt) [Qt], Inter (10pt) [GTK3/4]
Cursor: breeze (24px)
Terminal: konsole 25.8.2
CPU: AMD Ryzen 5 3600 (12) @ 4.21 GHz
GPU: AMD Radeon RX 570 Series [Discrete]
Memory: 5.47 GiB / 15.52 GiB (35%)
Swap: 1.96 GiB / 8.00 GiB (25%)
Disk (/): 175.87 GiB / 475.35 GiB (37%) - btrfs
Local IP (enp5s0): 192.168.86.146/24
Locale: en_US.UTF-8
Comment 1 Todd Robinson 2025-10-27 14:10:13 UTC
After submitting the bug, I clicked on the remaining cards in the talon and the win was declared. Typically when the tableau is empty, the cards in the talon automatically deal on the foundation and the win is declared. So it seems the problem is more likely to do with the auto deal not being triggered when the tableau has been cleared.

Thanks!