Description: Hack missing context menu
 Avoid Padre creash when context menus are used (either
 right-click or ctrl-/).
 .
 As upstreas has already heavily modified this area (and
 fixed the issue), this patch must not be forwarded upstream.
Author: dod@debian.org
Applied-Upstream: don't
--- a/lib/Padre/PluginManager.pm
+++ b/lib/Padre/PluginManager.pm
@@ -952,7 +952,8 @@
 	foreach my $handle ( $self->handles ) {
 		next unless $handle->can_context;
 		foreach my $handle ( $self->handles ) {
-			$handle->plugin->event_on_context_menu(@_);
+			$handle->plugin->event_on_context_menu(@_) 
+				if defined $handle->plugin and $handle->plugin->can('event_on_context_menu');
 		}
 	}
 
