From cec497dca69cca66c3d1a69498dd6f6e1265d673 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Fri, 9 Jan 2009 16:15:53 +0000 Subject: Ignore approval that happen after the operation was approved Signed-off-by: Sjoerd Simons svn path=/trunk/; revision=2196 --- libempathy/empathy-dispatch-operation.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libempathy') diff --git a/libempathy/empathy-dispatch-operation.c b/libempathy/empathy-dispatch-operation.c index 5619badaa..a6fb3b3a5 100644 --- a/libempathy/empathy-dispatch-operation.c +++ b/libempathy/empathy-dispatch-operation.c @@ -475,12 +475,18 @@ empathy_dispatch_operation_approve (EmpathyDispatchOperation *operation) g_signal_emit (operation, signals[APPROVED], 0); } - else + else if (priv->status < EMPATHY_DISPATCHER_OPERATION_STATE_APPROVING) { DEBUG ("Pre-approving operation %s", empathy_dispatch_operation_get_object_path (operation)); priv->approved = TRUE; } + else + { + DEBUG ( + "Ignoring approval for %s as it's already past the approval stage", + empathy_dispatch_operation_get_object_path (operation)); + } } /* Returns whether or not the operation was successfully claimed */ -- cgit v1.2.3