You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rm...@apache.org on 2022/05/27 02:31:24 UTC

[logging-chainsaw] 02/02: stop editing when creating a new receiver

This is an automated email from the ASF dual-hosted git repository.

rmiddleton pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-chainsaw.git

commit 7f236cf42cd770a70148aaad6d2fe8299554afcf
Author: Robert Middleton <ro...@rm5248.com>
AuthorDate: Thu May 26 22:19:17 2022 -0400

    stop editing when creating a new receiver
---
 .../org/apache/log4j/chainsaw/receivers/PluginPropertyEditorPanel.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/log4j/chainsaw/receivers/PluginPropertyEditorPanel.java b/src/main/java/org/apache/log4j/chainsaw/receivers/PluginPropertyEditorPanel.java
index 939a8b0..b5ca7e8 100644
--- a/src/main/java/org/apache/log4j/chainsaw/receivers/PluginPropertyEditorPanel.java
+++ b/src/main/java/org/apache/log4j/chainsaw/receivers/PluginPropertyEditorPanel.java
@@ -87,7 +87,8 @@ public class PluginPropertyEditorPanel extends JPanel {
      * @return Returns the plugin.
      */
     public final ChainsawReceiver getPlugin() {
-
+        propertyTable.getColumnModel().getColumn(1)
+            .getCellEditor().stopCellEditing();
         return m_receiver;
     }