Browse Source

Minor tidying.

Change-Id: I92eb78612d1a92eafa78c618ba2f7fb937ec6f54
Reviewed-on: http://gerrit.dmdirc.com/3800
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
changes/00/3800/2
Chris Smith 9 years ago
parent
commit
68928d6b7a

+ 1
- 3
src/com/dmdirc/addons/ui_swing/components/SwingSearchBar.java View File

@@ -226,7 +226,6 @@ public final class SwingSearchBar extends JPanel implements ActionListener,
226 226
     @Override
227 227
     public void search(final Direction direction, final String text,
228 228
             final boolean caseSensitive) {
229
-        boolean foundText;
230 229
         wrapIndicator.setVisible(false);
231 230
 
232 231
         final boolean up = Direction.UP == direction;
@@ -258,8 +257,7 @@ public final class SwingSearchBar extends JPanel implements ActionListener,
258 257
             //found, select and return found
259 258
             textPane.setScrollBarPosition(result.getEndLine());
260 259
             textPane.setSelectedText(result);
261
-            foundText = true;
262
-            validator.setValidates(foundText);
260
+            validator.setValidates(true);
263 261
             searchBox.checkError();
264 262
         }
265 263
     }

+ 1
- 1
src/com/dmdirc/addons/ui_swing/components/colours/ColourPickerPanel.java View File

@@ -161,7 +161,7 @@ public final class ColourPickerPanel extends JPanel implements MouseListener,
161 161
                 }
162 162
 
163 163
                 g.setColor(Color.BLACK);
164
-                g.drawRect(BORDER_SIZE, offset, HEX_HEIGHT, HEX_WIDTH);
164
+                g.drawRect(BORDER_SIZE, offset, HEX_WIDTH, HEX_HEIGHT);
165 165
 
166 166
                 g.drawRect(BORDER_SIZE * 2 + HEX_WIDTH, offset, 10, HEX_HEIGHT);
167 167
 

+ 0
- 1
src/com/dmdirc/addons/ui_swing/framemanager/ctrltab/CtrlTabWindowManager.java View File

@@ -146,7 +146,6 @@ public class CtrlTabWindowManager implements SelectionListener {
146 146
 
147 147
     @Handler
148 148
     public void windowDeleted(final SwingWindowDeletedEvent event) {
149
-        final TextFrame parent = event.getParentWindow().orNull();
150 149
         final TextFrame window = event.getChildWindow();
151 150
         UIUtilities.invokeAndWait(new Runnable() {
152 151
 

Loading…
Cancel
Save