GP-1429 - fixed bug that caused field to get renamed when not choosing a

new type

Closes #3483
This commit is contained in:
dragonmacher
2021-10-25 16:45:37 -04:00
parent 5e5b0790ad
commit 0e02978472
@@ -102,7 +102,7 @@ public class RetypeFieldAction extends AbstractDecompilerAction {
} }
DataType dataType = chooseDataType(tool, program, originalDataType); DataType dataType = chooseDataType(tool, program, originalDataType);
if (dataType == null) { if (dataType == null || dataType.isEquivalent(originalDataType)) {
return; // cancelled return; // cancelled
} }