From: David ‘Bombe’ Roden Date: Tue, 28 May 2013 12:48:09 +0000 (+0200) Subject: Don’t listen for updates on the parent component. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=cb78e23372643d53b4cb731ae8c7c494b0752111;p=sonitus.git Don’t listen for updates on the parent component. --- diff --git a/src/main/java/net/pterodactylus/sonitus/gui/PipelinePanel.java b/src/main/java/net/pterodactylus/sonitus/gui/PipelinePanel.java index 83041f1..4b1527c 100644 --- a/src/main/java/net/pterodactylus/sonitus/gui/PipelinePanel.java +++ b/src/main/java/net/pterodactylus/sonitus/gui/PipelinePanel.java @@ -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() {