Don’t listen for updates on the parent component.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 28 May 2013 12:48:09 +0000 (14:48 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 28 May 2013 12:48:09 +0000 (14:48 +0200)
src/main/java/net/pterodactylus/sonitus/gui/PipelinePanel.java

index 83041f1..4b1527c 100644 (file)
@@ -180,14 +180,6 @@ public class PipelinePanel extends JPanel {
                componentPanel.add(titleLabel, BorderLayout.EAST);
                if (parentComponent != null) {
                        titleLabel.setVisible(!parentComponent.metadata().fullTitle().equals(controlledComponent.metadata().fullTitle()));
-                       parentComponent.addMetadataListener(new MetadataListener() {
-
-                               @Override
-                               public void metadataUpdated(ControlledComponent component, Metadata metadata) {
-                                       titleLabel.setText(metadata.title());
-                                       titleLabel.setVisible(!controlledComponent.metadata().title().equals(metadata.title()));
-                               }
-                       });
                }
                controlledComponent.addMetadataListener(new MetadataListener() {