mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 367473 - Rename refactoring without dialog leaks memory.
This commit is contained in:
parent
7559df0558
commit
227294f49a
1 changed files with 5 additions and 1 deletions
|
@ -200,7 +200,11 @@ public class RenameSupport {
|
|||
processor.getSaveMode())) {
|
||||
return DialogResult.OK;
|
||||
}
|
||||
return dialogSkipped[0] ? DialogResult.SKIPPED : DialogResult.CANCELED;
|
||||
if (dialogSkipped[0]) {
|
||||
// If the dialog was not shown, it is our responsibility to close it.
|
||||
wizard.getContainer().getShell().close();
|
||||
return DialogResult.SKIPPED;
|
||||
}
|
||||
} finally {
|
||||
processor.unlockIndex();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue