Opened 14 years ago
Closed 14 years ago
#4470 closed defect (fixed)
[patch] Remembers choice does not remember correctly
Reported by: | Nakor | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | Cc: |
Description
Edit a relation
Select some netities: some are already in the relation, some are not
Add everything to the relation
METHOD 1 (works but tedious): click on No every single time the window syaing that the entity is already in the relation
METHOD 2 (easy but broken): click on emember choice"and then hit No. You end up with lots of duplicates in the relation
Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2010-02-02 02:31:27
Last Changed Author: jttt
Revision: 2920
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2010-02-01 21:56:31 +0100 (Mon, 01 Feb 2010)
Last Changed Rev: 2920
Attachments (0)
Change History (2)
comment:1 by , 14 years ago
Summary: | Remembers choice does not remember correctly → [patch] Remembers choice does not remember correctly |
---|
comment:2 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Below is a proposed patch for this. One of my first experiences in Java, may break other things.
Index: src/org/openstreetmap/josm/gui/ConditionalOptionPaneUtil.java
===================================================================
--- src/org/openstreetmap/josm/gui/ConditionalOptionPaneUtil.java (revision 2928)
+++ src/org/openstreetmap/josm/gui/ConditionalOptionPaneUtil.java (working copy)
@@ -105,13 +105,15 @@
+ if (!getDialogShowingEnabled(preferenceKey) && (getDialogReturnValue(preferenceKey) >= 0))
+ return getDialogReturnValue(preferenceKey);
+ if ((ret >= 0) && !pnl.getDialogShowingEnabled()) {
+ setDialogReturnValue(preferenceKey, ret);
+ }