fix choose run configuration popup: ensure alternative executor reset

This commit is contained in:
Alexey Pegov
2009-10-22 18:51:34 +04:00
parent 7dd48e38a9
commit d35a4b83e3
@@ -122,7 +122,12 @@ public class ChooseRunConfigurationAction extends AnAction {
popup.registerAction("invokeAction", KeyStroke.getKeyStroke("shift ENTER"), new AbstractAction() {
public void actionPerformed(ActionEvent e) {
popup.handleSelect(true);
try {
popup.handleSelect(true);
}
finally {
myCurrentExecutor = null;
}
}
});
@@ -613,7 +618,7 @@ public class ChooseRunConfigurationAction extends AnAction {
if (finalChoice && wrapper.available(executor)) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
if (myAction.getCurrentExecutor() == myAction.getAlternateExecutor()) {
if (executor == myAction.getAlternateExecutor()) {
PropertiesComponent.getInstance().setValue(myAction.getAdKey(), Boolean.toString(true));
}