From cb78e23372643d53b4cb731ae8c7c494b0752111 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 28 May 2013 14:48:09 +0200 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20listen=20for=20updates=20on=20th?= =?utf8?q?e=20parent=20component.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/sonitus/gui/PipelinePanel.java | 8 -------- 1 file changed, 8 deletions(-) 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() { -- 2.7.4