aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/plugin/generalconfig
diff options
context:
space:
mode:
authorDamian Minkov <damencho@jitsi.org>2012-09-25 09:44:08 +0000
committerDamian Minkov <damencho@jitsi.org>2012-09-25 09:44:08 +0000
commit01fabbeeec92e8be543db64bb7d87638ff48ef7e (patch)
treeb4fdc31fc4f0002d39568a3830699ee7a0b6f084 /src/net/java/sip/communicator/plugin/generalconfig
parent5f8c5a906307d082198f8253626288a03df66818 (diff)
downloadjitsi-01fabbeeec92e8be543db64bb7d87638ff48ef7e.zip
jitsi-01fabbeeec92e8be543db64bb7d87638ff48ef7e.tar.gz
jitsi-01fabbeeec92e8be543db64bb7d87638ff48ef7e.tar.bz2
Fixes leaking queries and their results. Fixes memory leaking xml texts in chat panel. Autoaway configuration saved while typing.
Diffstat (limited to 'src/net/java/sip/communicator/plugin/generalconfig')
-rw-r--r--src/net/java/sip/communicator/plugin/generalconfig/autoaway/AutoAwayConfigurationPanel.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/plugin/generalconfig/autoaway/AutoAwayConfigurationPanel.java b/src/net/java/sip/communicator/plugin/generalconfig/autoaway/AutoAwayConfigurationPanel.java
index 2e61953..3c5a144 100644
--- a/src/net/java/sip/communicator/plugin/generalconfig/autoaway/AutoAwayConfigurationPanel.java
+++ b/src/net/java/sip/communicator/plugin/generalconfig/autoaway/AutoAwayConfigurationPanel.java
@@ -11,6 +11,7 @@ import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
+import javax.swing.text.*;
import net.java.sip.communicator.plugin.generalconfig.*;
import net.java.sip.communicator.util.swing.*;
@@ -102,6 +103,15 @@ public class AutoAwayConfigurationPanel
"plugin.autoaway.AWAY_MINUTES")));
timerPanel.add(timer);
+ try
+ {
+ // changes that are valid will be saved immediately while typing
+ ((DefaultFormatter)((JSpinner.DefaultEditor)timer.getEditor())
+ .getTextField().getFormatter()).setCommitsOnValidEdit(true);
+ }
+ catch(Throwable t)
+ {}
+
JPanel mainPanel = new TransparentPanel(new BorderLayout(5, 5));
mainPanel.add(enable, BorderLayout.NORTH);