aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-individual-view.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-06-01 17:33:04 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-06-01 17:48:48 +0800
commitcc6c2b5423c3a1906b5f484c157bc67dd9ee9d86 (patch)
tree5c0f78b874007b9477083f0a4947a8e82f4e1dac /libempathy-gtk/empathy-individual-view.c
parent5d2b0e7740e6929451c630dc072f0ac199f173c3 (diff)
downloadgsoc2013-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.c4
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;