mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Don't show safe delete dialog when there's nothing to delete (e.g. the extension returned no primary/secondary elements)
This commit is contained in:
@@ -129,8 +129,10 @@ public class SafeDeleteHandler implements RefactoringActionHandler {
|
||||
|
||||
};
|
||||
|
||||
SafeDeleteDialog dialog = new SafeDeleteDialog(project, elementsToDelete, callback);
|
||||
dialog.show();
|
||||
if (elementsToDelete.length > 0) {
|
||||
SafeDeleteDialog dialog = new SafeDeleteDialog(project, elementsToDelete, callback);
|
||||
dialog.show();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user