Browse Source

Minor deprecation changes

Change-Id: I4085cc6243386d8911afddd752769b252e1810c7
Reviewed-on: http://gerrit.dmdirc.com/1151
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
Automatic-Compile: Gregory Holmes <greg@dmdirc.com>
Reviewed-by: Gregory Holmes <greg@dmdirc.com>
tags/0.6.4
Chris Smith 14 years ago
parent
commit
46ba0c303d

+ 3
- 1
src/com/dmdirc/addons/logging/HistoryWindow.java View File

@@ -60,7 +60,9 @@ public class HistoryWindow extends FrameContainer<Window> {
60 60
     @Override
61 61
     public void windowClosing() {
62 62
         // 1: Make the window non-visible
63
-        getFrame().setVisible(false);
63
+        for (Window window : getWindows()) {
64
+            window.setVisible(false);
65
+        }
64 66
 
65 67
         // 2: Remove any callbacks or listeners
66 68
         // 3: Trigger any actions neccessary

+ 2
- 2
src/com/dmdirc/addons/nowplaying/NowPlayingCommand.java View File

@@ -76,7 +76,7 @@ public final class NowPlayingCommand extends ChatCommand implements IntelligentC
76 76
                     sendLine(origin, isSilent, FORMAT_ERROR, "Source not found.");
77 77
                 } else {
78 78
                     if (source.getState() != MediaSourceState.CLOSED) {
79
-                        target.getFrame().getCommandParser().parseCommand(origin,
79
+                        target.getCommandParser().parseCommand(origin,
80 80
                                 getInformation(source, args.getArgumentsAsString(2)));
81 81
                     } else {
82 82
                         sendLine(origin, isSilent, FORMAT_ERROR, "Source is not running.");
@@ -88,7 +88,7 @@ public final class NowPlayingCommand extends ChatCommand implements IntelligentC
88 88
             }
89 89
         } else {
90 90
             if (parent.hasRunningSource()) {
91
-                target.getFrame().getCommandParser().parseCommand(origin,
91
+                target.getCommandParser().parseCommand(origin,
92 92
                         getInformation(parent.getBestSource(), args.
93 93
                         getArgumentsAsString(0)));
94 94
             } else {

Loading…
Cancel
Save