[nautilus-actions] Do not try to get filters when there is no current context
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Do not try to get filters when there is no current context
- Date: Wed, 16 Jun 2010 22:06:24 +0000 (UTC)
commit 5505950449c5b0886e501760b0806ce8e44286be
Author: Pierre Wieser <pwieser trychlos org>
Date: Tue Jun 15 23:14:20 2010 +0200
Do not try to get filters when there is no current context
ChangeLog | 3 +++
src/nact/nact-match-list.c | 8 ++++++--
2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 70ee376..6811da0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2010-06-15 Pierre Wieser <pwieser trychlos org>
+ * src/nact/nact-match-list.c:
+ Do not try to get filters when there is no current context.
+
* src/nact/nact-main-window.c:
Do not mark the application as modified when list is empty.
diff --git a/src/nact/nact-match-list.c b/src/nact/nact-match-list.c
index 85f654a..d9e369f 100644
--- a/src/nact/nact-match-list.c
+++ b/src/nact/nact-match-list.c
@@ -331,8 +331,12 @@ nact_match_list_on_selection_changed( BaseWindow *window, const gchar *tab_name,
context = ( profile ? NA_ICONTEXT( profile ) : ( NAIContext * ) item );
data->editable = editable;
- filters = ( *data->pget )( context );
- g_debug( "%s: filters=%p (count=%d)", thisfn, ( void * ) filters, filters ? g_slist_length( filters ) : -1 );
+ filters = NULL;
+
+ if( context ){
+ filters = ( *data->pget )( context );
+ g_debug( "%s: filters=%p (count=%d)", thisfn, ( void * ) filters, filters ? g_slist_length( filters ) : -1 );
+ }
st_on_selection_change = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]