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

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

161
                 }
161
                 }
162
 
162
 
163
                 g.setColor(Color.BLACK);
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
                 g.drawRect(BORDER_SIZE * 2 + HEX_WIDTH, offset, 10, HEX_HEIGHT);
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
 
146
 
147
     @Handler
147
     @Handler
148
     public void windowDeleted(final SwingWindowDeletedEvent event) {
148
     public void windowDeleted(final SwingWindowDeletedEvent event) {
149
-        final TextFrame parent = event.getParentWindow().orNull();
150
         final TextFrame window = event.getChildWindow();
149
         final TextFrame window = event.getChildWindow();
151
         UIUtilities.invokeAndWait(new Runnable() {
150
         UIUtilities.invokeAndWait(new Runnable() {
152
 
151
 

Loading…
Cancel
Save