logging-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sde...@apache.org
Subject svn commit: r833851 - /logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/ApplicationPreferenceModelPanel.java
Date Sun, 08 Nov 2009 09:20:33 GMT
Author: sdeboy
Date: Sun Nov  8 09:20:31 2009
New Revision: 833851

URL: http://svn.apache.org/viewvc?rev=833851&view=rev
Log:
Only add a browsed-to configuration URL if it doesn't already exist on the list

Modified:
    logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/ApplicationPreferenceModelPanel.java

Modified: logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/ApplicationPreferenceModelPanel.java
URL: http://svn.apache.org/viewvc/logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/ApplicationPreferenceModelPanel.java?rev=833851&r1=833850&r2=833851&view=diff
==============================================================================
--- logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/ApplicationPreferenceModelPanel.java
(original)
+++ logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/ApplicationPreferenceModelPanel.java
Sun Nov  8 09:20:31 2009
@@ -506,7 +506,9 @@
                   try
                   {
                       String newConfigurationFile = f.toURI().toURL().toExternalForm();
-                      configurationURL.addItem(newConfigurationFile);
+                      if (!committedPreferenceModel.getConfigurationURLs().contains(newConfigurationFile))
{
+                        configurationURL.addItem(newConfigurationFile);
+                      }
                       configurationURL.setSelectedItem(newConfigurationFile);
                   }
                   catch (MalformedURLException e1)



Mime
View raw message