Bug 495933

Summary: Double clicking on another file while the context menu is open does not select, but still opens that file
Product: [Applications] dolphin Reporter: jakubg1.100
Component: view-engine: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: akselmo, kdedev, kfm-devel
Priority: NOR    
Version: 24.08.2   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Recording of the bug

Description jakubg1.100 2024-11-07 18:14:27 UTC
Created attachment 175627 [details]
Recording of the bug

SUMMARY
Whenever I right-click a file to see its context menu, and then I double click to select another file, the file opens instead of just being selected like shown in the video. This happens in any view mode, both with files and folders.

STEPS TO REPRODUCE
1. Open a folder with at least two files inside.
2. Right click one of the files/folders to open its context menu ("file 1").
3. Double click another entry on the file list ("file 2").

OBSERVED RESULT
The context menu disappears, and the file 2 is opened despite not even being selected in the first place.

EXPECTED RESULT
The first click should close the context menu, and the second click should select the file 2 without opening it.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 40, kernel 6.10.12-200.fc40.x86_64 (64-bit)
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.2
Comment 1 jakubg1.100 2024-11-07 18:16:57 UTC
It seems like I cannot edit my report. I just wanted to add that in the video three attempts have been made. The second attempt was purposefully slower so that both clicks would not register as a double click, and shows the expected result.
Comment 2 TraceyC 2024-11-08 02:08:50 UTC
I can confirm this behavior on Dolphin built from git-master

I would expect that if it was intentional to open file 2 with a double click with the right-click menu open on file1, then file2 would be highlighted. In other words, the behavior would be the same as when file2 gets two single clicks.
Comment 3 Akseli Lahtinen 2024-11-12 16:10:12 UTC
Can also confirm. I think it opens if you click it really fast even when the context menu is open. If I do more deliberate slower clicks, it gets selected.