Revision 38773 branches/v2_0_0_prep/extensions/extEditing/src/org/gvsig/editing/StopEditing.java

View differences:

StopEditing.java
145 145
								JOptionPane.YES_NO_CANCEL_OPTION,
146 146
								JOptionPane.QUESTION_MESSAGE, null, options,
147 147
								options[2]);
148
				
148 149
				if (resp == JOptionPane.YES_OPTION) {
149 150
				    // SAVE
150 151
					saveLayer(layer);
......
159 160
				    // CONTINUE EDITING
160 161
				    return false;
161 162
				} else {
162
				    // should not get here
163
				    // cancel editing
164
                    cancelEdition(layer);
165
                    layer.setEditing(false);
166
                    return true;
163
				    // This happens when user clicks on [x]
164
				    // to abruptly close previous JOptionPane dialog
165
				    // We make it equivalent to CONTINUE EDITING
166
                    return false;
167 167
				}
168 168
				
169 169
			}

Also available in: Unified diff