Author: kmorin Date: 2013-02-22 19:20:15 +0100 (Fri, 22 Feb 2013) New Revision: 457 Url: http://forge.codelutin.com/projects/tutti/repository/revisions/457 Log: fixes #2032 [PROTOCOLE] - Suppression - Obliger de cliquer 2 fois pour valider Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/home/SelectCruiseUIHandler.java Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/home/SelectCruiseUIHandler.java =================================================================== --- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/home/SelectCruiseUIHandler.java 2013-02-22 18:11:12 UTC (rev 456) +++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/home/SelectCruiseUIHandler.java 2013-02-22 18:20:15 UTC (rev 457) @@ -258,7 +258,11 @@ if (!resetEditProtolAction) { JComboBox newProtocolCombo = (JComboBox) event.getSource(); Action selectedAction = (Action) newProtocolCombo.getSelectedItem(); - + // hide popup before performing the action, otherwise, if the action + // opens a popup, the user must click a first time to hide the combobox + // popup to then interact with the popup opened by the action + // (see http://forge.codelutin.com/issues/2032) + newProtocolCombo.hidePopup(); selectedAction.actionPerformed(event); } } @@ -266,7 +270,11 @@ public void startNewProtocolAction(ActionEvent event) { JComboBox newProtocolCombo = (JComboBox) event.getSource(); Action selectedAction = (Action) newProtocolCombo.getSelectedItem(); - + // hide popup before performing the action, otherwise, if the action + // opens a popup, the user must click a first time to hide the combobox + // popup to then interact with the popup opened by the action + // (see http://forge.codelutin.com/issues/2032) + newProtocolCombo.hidePopup(); selectedAction.actionPerformed(event); } }