[nautilus/gnome-3-22] window: check for an active slot when updating cursor
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/gnome-3-22] window: check for an active slot when updating cursor
- Date: Wed, 26 Oct 2016 18:55:13 +0000 (UTC)
commit acb9e8e1f60e46ad5327118e9c750384bba76b33
Author: Ernestas Kulik <ernestask src gnome org>
Date: Tue Oct 25 20:08:49 2016 +0300
window: check for an active slot when updating cursor
When updating the cursor, the existence of an active window slot is
assumed when checking if it allows stopping. This can cause a crash if
the last view is closed while it is still loading.
https://bugzilla.gnome.org/show_bug.cgi?id=773499
src/nautilus-window.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index be126f4..a9c1d87 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -796,7 +796,8 @@ update_cursor (NautilusWindow *window)
slot = nautilus_window_get_active_slot (window);
- if (nautilus_window_slot_get_allow_stop (slot))
+ if (slot != NULL &&
+ nautilus_window_slot_get_allow_stop (slot))
{
GdkDisplay *display;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]