diff options
author | Martin Wehner <martin.wehner@gmail.com> | 2005-05-02 20:50:06 +0000 |
---|---|---|
committer | Martin Wehner <mwehner@src.gnome.org> | 2005-05-02 20:50:06 +0000 |
commit | bd4ce86740db9652dc3afdb079fa51a5afea5203 (patch) | |
tree | 45d45f6126960347881bb7970a6234ad9d2d1904 /libnautilus-private/nautilus-icon-container.c | |
parent | 091b6fcdd8e03797eee60711ba3c0fa330b11f27 (diff) | |
download | nautilus-bd4ce86740db9652dc3afdb079fa51a5afea5203.tar.gz |
Prevent nautilus from crashing on press of Ctrl+Space in an empty
2005-05-02 Martin Wehner <martin.wehner@gmail.com>
* libnautilus-private/nautilus-icon-container.c:
(keyboard_space): Prevent nautilus from crashing on press of
Ctrl+Space in an empty directory. Fixes bug #302018.
Patch from Vinay M R <vinay.mandyakoppal@wipro.com>
Diffstat (limited to 'libnautilus-private/nautilus-icon-container.c')
-rw-r--r-- | libnautilus-private/nautilus-icon-container.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-icon-container.c b/libnautilus-private/nautilus-icon-container.c index 18dd7a1ad..9bdc55a19 100644 --- a/libnautilus-private/nautilus-icon-container.c +++ b/libnautilus-private/nautilus-icon-container.c @@ -2838,7 +2838,9 @@ keyboard_space (NautilusIconContainer *container, leftmost_in_top_row, NULL); } - set_keyboard_focus (container, icon); + if (icon != NULL) { + set_keyboard_focus (container, icon); + } } } else if ((event->state & GDK_SHIFT_MASK) != 0) { activate_selected_items_alternate (container, NULL); |