Browse Source

Use new optional integer methods

Change-Id: Ic44832e9a118f96cf6d37f6a2da7c162ea131094
Depends-On: I79e9a19acf452c831ee6e671f50b54e8f674f2cd
Reviewed-on: http://gerrit.dmdirc.com/1570
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
tags/0.6.5
Chris Smith 13 years ago
parent
commit
07fa0b2697

+ 1
- 1
src/com/dmdirc/addons/osd/OsdManager.java View File

@@ -69,7 +69,7 @@ public class OsdManager {
69 69
      */
70 70
     private synchronized void displayWindows() {
71 71
         final Integer maxWindows = IdentityManager.getGlobalConfig().
72
-                getOptionInt(plugin.getDomain(), "maxWindows");
72
+                getOptionInt(plugin.getDomain(), "maxWindows", false);
73 73
 
74 74
         String nextItem;
75 75
 

+ 1
- 1
src/com/dmdirc/addons/osd/OsdWindow.java View File

@@ -100,7 +100,7 @@ public class OsdWindow extends JDialog implements MouseListener,
100 100
         this.config = config;
101 101
         this.osdManager = osdManager;
102 102
         this.timeout = IdentityManager.getGlobalConfig()
103
-            .getOptionInt(osdManager.getPlugin().getDomain(), "timeout");
103
+            .getOptionInt(osdManager.getPlugin().getDomain(), "timeout", false);
104 104
 
105 105
         setFocusableWindowState(false);
106 106
         setAlwaysOnTop(true);

+ 1
- 1
src/com/dmdirc/addons/ui_swing/components/frames/InputTextFrame.java View File

@@ -379,7 +379,7 @@ public abstract class InputTextFrame extends TextFrame implements InputWindow,
379 379
             //Clear the input field
380 380
             inputField.setText("");
381 381
             final Integer pasteTrigger = getContainer().getConfigManager().
382
-                    getOptionInt("ui", "pasteProtectionLimit");
382
+                    getOptionInt("ui", "pasteProtectionLimit", false);
383 383
             //check whether the number of lines is over the limit
384 384
             if (pasteTrigger != null && getContainer().getNumLines(text)
385 385
                     > pasteTrigger) {

Loading…
Cancel
Save