GNOME Bugzilla – Bug 302018
Nautilus crashes when user focuses on icon area and hits <ctrl>+top buttons
Last modified: 2005-05-02 21:12:21 UTC
Using latest Linux internal build, gnome nautilus 2.6.1 and gnome gok 1.0.3 Steps to reproduce: * start gok * open up nautilus (click "Documents" on the desktop) * create a new folder in documents folder * open the new folder and make sure the focus is on the icon area * Go to Compose and click on Ctrl + top button (any of the 5 purple buttons at the top that you select a predicted word from) Nautilus will crash. Crash occurs on dwell and autoscanning modes.
Easiest way to reproduce the bug without involving Ally/GOK is: 1)open up nautilus (click "Documents" on the desktop) 2)create a new folder in documents folder 3)open the new folder and press Ctrl+Space. Nautilus will crash.
Ctrl+Space is used to toggle the selection state of the current icon. When user press Ctrl+Space, it will try to toggle selection on an icon in empty folder. Hence set_keyboard_focus() asserts leading to nautilus crash. So, in keyboard_space function, check if an icon is found, before trying to alter focus. Attaching a small patch.
Created attachment 45772 [details] [review] Patch fixes the bug.
Committed on both branches - Thanks Vinay.