From 4e3f6193cd395aab284100211440a177f5039ae8 Mon Sep 17 00:00:00 2001
From: Nathanaƫl Jourdane <njourdane@irap.omp.eu>
Date: Tue, 10 Apr 2018 16:34:21 +0200
Subject: [PATCH] Fix right-click bug

---
 js/app/views/ExplorerUI.js | 3 +++
 1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/js/app/views/ExplorerUI.js b/js/app/views/ExplorerUI.js
index 79ef6d1..d7b8696 100644
--- a/js/app/views/ExplorerUI.js
+++ b/js/app/views/ExplorerUI.js
@@ -506,6 +506,9 @@ Ext.define('amdaUI.ExplorerUI', {
 				},
 
 				itemcontextmenu: function(view, rec, item, index, e){
+					// Add record to selection model
+					view.ownerCt.getSelectionModel().select(rec);
+
 					// block other events
 					e.stopEvent();
 
--
libgit2 0.21.2