mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
action Presentation: don't copy to itself
This commit is contained in:
@@ -314,6 +314,8 @@ public final class Presentation implements Cloneable {
|
||||
}
|
||||
|
||||
public void copyFrom(Presentation presentation) {
|
||||
if (presentation == this) return;
|
||||
|
||||
setText(presentation.getTextWithMnemonic(), presentation.myDisplayedMnemonicIndex > -1);
|
||||
setDescription(presentation.getDescription());
|
||||
setIcon(presentation.getIcon());
|
||||
|
||||
Reference in New Issue
Block a user