[nautilus] window: active_pane might be NULL if we're destroying the window
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] window: active_pane might be NULL if we're destroying the window
- Date: Thu, 17 Feb 2011 16:32:44 +0000 (UTC)
commit a08625badd19790faca002f1fd6c7049f2d680ba
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Feb 16 15:48:32 2011 -0500
window: active_pane might be NULL if we're destroying the window
src/nautilus-window.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 4c04c95..9f74e36 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -1553,6 +1553,10 @@ nautilus_window_get_active_slot (NautilusWindow *window)
{
g_assert (NAUTILUS_IS_WINDOW (window));
+ if (window->details->active_pane == NULL) {
+ return NULL;
+ }
+
return window->details->active_pane->active_slot;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]