diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-06-01 17:33:04 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-06-01 17:48:48 +0800 |
commit | cc6c2b5423c3a1906b5f484c157bc67dd9ee9d86 (patch) | |
tree | 5c0f78b874007b9477083f0a4947a8e82f4e1dac /libempathy-gtk/empathy-individual-view.c | |
parent | 5d2b0e7740e6929451c630dc072f0ac199f173c3 (diff) | |
download | gsoc2013-empathy-cc6c2b5423c3a1906b5f484c157bc67dd9ee9d86.tar gsoc2013-empathy-cc6c2b5423c3a1906b5f484c157bc67dd9ee9d86.tar.gz gsoc2013-empathy-cc6c2b5423c3a1906b5f484c157bc67dd9ee9d86.tar.bz2 gsoc2013-empathy-cc6c2b5423c3a1906b5f484c157bc67dd9ee9d86.tar.lz gsoc2013-empathy-cc6c2b5423c3a1906b5f484c157bc67dd9ee9d86.tar.xz gsoc2013-empathy-cc6c2b5423c3a1906b5f484c157bc67dd9ee9d86.tar.zst gsoc2013-empathy-cc6c2b5423c3a1906b5f484c157bc67dd9ee9d86.zip |
empathy_individual_view_get_individual_menu: don't create a menu if we don't want any feature
Fix an assertion error when right clicking in the 'Invite contact' treeview.
Diffstat (limited to 'libempathy-gtk/empathy-individual-view.c')
-rw-r--r-- | libempathy-gtk/empathy-individual-view.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-individual-view.c b/libempathy-gtk/empathy-individual-view.c index ec632989e..72e64cf7d 100644 --- a/libempathy-gtk/empathy-individual-view.c +++ b/libempathy-gtk/empathy-individual-view.c @@ -2564,6 +2564,10 @@ empathy_individual_view_get_individual_menu (EmpathyIndividualView *view) g_return_val_if_fail (EMPATHY_IS_INDIVIDUAL_VIEW (view), NULL); + if (priv->individual_features == EMPATHY_INDIVIDUAL_FEATURE_NONE) + /* No need to create a context menu */ + return NULL; + individual = empathy_individual_view_dup_selected (view); if (individual == NULL) return NULL; |