inplace rename: don't show dialogs in confirmation popup selection processing (EA-99472 - assert: ListPopupImpl.lambda$_handleSelect$)

This commit is contained in:
peter
2017-03-27 17:39:24 +02:00
parent 07e117ee4e
commit f9e4cd70c8
@@ -139,16 +139,10 @@ public class PopupFactoryImpl extends JBPopupFactory {
int defaultOptionIndex)
{
final BaseListPopupStep<String> step = new BaseListPopupStep<String>(title, new String[]{yesText, noText}) {
final BaseListPopupStep<String> step = new BaseListPopupStep<String>(title, yesText, noText) {
@Override
public PopupStep onChosen(String selectedValue, final boolean finalChoice) {
if (selectedValue.equals(yesText)) {
onYes.run();
}
else {
onNo.run();
}
return FINAL_CHOICE;
return doFinalStep(selectedValue.equals(yesText) ? onYes : onNo);
}
@Override