From 01fabbeeec92e8be543db64bb7d87638ff48ef7e Mon Sep 17 00:00:00 2001 From: Damian Minkov Date: Tue, 25 Sep 2012 09:44:08 +0000 Subject: Fixes leaking queries and their results. Fixes memory leaking xml texts in chat panel. Autoaway configuration saved while typing. --- .../generalconfig/autoaway/AutoAwayConfigurationPanel.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/net/java/sip/communicator/plugin/generalconfig') 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); -- cgit v1.1