This is an automated email from the ASF dual-hosted git repository.

hansva pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hop.git


The following commit(s) were added to refs/heads/main by this push:
     new 885f676c38 fix filter on selection, fixes #7769 (#7801)
885f676c38 is described below

commit 885f676c38a4dd9fac804bbb66bd523db2f3752f
Author: Hans Van Akelyen <[email protected]>
AuthorDate: Thu Aug 6 15:08:49 2026 +0200

    fix filter on selection, fixes #7769 (#7801)
---
 .../hop/ui/hopgui/file/pipeline/HopGuiPipelineGraph.java   | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git 
a/ui/src/main/java/org/apache/hop/ui/hopgui/file/pipeline/HopGuiPipelineGraph.java
 
b/ui/src/main/java/org/apache/hop/ui/hopgui/file/pipeline/HopGuiPipelineGraph.java
index f7db2c1486..f957c93e87 100644
--- 
a/ui/src/main/java/org/apache/hop/ui/hopgui/file/pipeline/HopGuiPipelineGraph.java
+++ 
b/ui/src/main/java/org/apache/hop/ui/hopgui/file/pipeline/HopGuiPipelineGraph.java
@@ -1238,10 +1238,9 @@ public class HopGuiPipelineGraph extends 
HopGuiAbstractGraph
           // Flip selection when control is pressed!
           if (control) {
             selectedTransform.flipSelected();
-            // Track that a transform selection changed (if it's now selected)
-            if (selectedTransform.isSelected()) {
-              pipelineGridDelegate.onPipelineSelectionChanged();
-            }
+            // Track the selection change: also when the transform was just 
de-selected, otherwise
+            // the "show only selected transforms" filter keeps showing the 
previous selection.
+            pipelineGridDelegate.onPipelineSelectionChanged();
           } else {
             singleClick = true;
             singleClickType = SingleClickType.Transform;
@@ -1327,10 +1326,8 @@ public class HopGuiPipelineGraph extends 
HopGuiAbstractGraph
             // Flip selection when control is pressed!
             if (control) {
               selectedNote.flipSelected();
-              // Track that a note selection changed (if it's now selected)
-              if (selectedNote.isSelected()) {
-                pipelineGridDelegate.onPipelineSelectionChanged();
-              }
+              // Track the selection change in both directions (select and 
de-select).
+              pipelineGridDelegate.onPipelineSelectionChanged();
             } else {
               // single click on a note: ask what needs to happen...
               //
@@ -6069,6 +6066,7 @@ public class HopGuiPipelineGraph extends 
HopGuiAbstractGraph
   @Override
   public void selectAll() {
     pipelineMeta.selectAll();
+    pipelineGridDelegate.onPipelineSelectionChanged();
     updateGui();
   }
 

Reply via email to