[nautilus/gnome-3-20] 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-20] window: check for an active slot when updating cursor
- Date: Sun, 13 Nov 2016 20:26:42 +0000 (UTC)
commit fbd7100875cac820bf8a089004bdf8da2c20eddb
Author: Ernestas Kulik <ernestask src gnome org>
Date: Sun Nov 13 22:26:10 2016 +0200
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 f3166f2..4d59413 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -750,7 +750,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;
display = gtk_widget_get_display (GTK_WIDGET (window));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]