From b29e6aaa5f77bba651b7ab255409d525c4491c19 Mon Sep 17 00:00:00 2001 From: "Egor.Ushakov" Date: Tue, 24 Jun 2014 16:24:32 +0400 Subject: [PATCH] IDEA-126521 Debugger: "Add To Watches" action is always disabled in the Variables view --- .../xdebugger/impl/ui/tree/actions/XAddToWatchesAction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/ui/tree/actions/XAddToWatchesAction.java b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/ui/tree/actions/XAddToWatchesAction.java index c4bb274400ea..66f22bbfd4f1 100644 --- a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/ui/tree/actions/XAddToWatchesAction.java +++ b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/ui/tree/actions/XAddToWatchesAction.java @@ -55,9 +55,9 @@ class XAddToWatchesAction extends XDebuggerTreeActionBase { if (view == null && project != null) { XDebugSession session = XDebuggerManager.getInstance(project).getCurrentSession(); if (session != null) { - return ((XDebugSessionImpl)session).getSessionTab().getWatchesView(); + view = ((XDebugSessionImpl)session).getSessionTab().getWatchesView(); } } - return null; + return view; } } \ No newline at end of file