[image] Avoid ending up with multiple selected images on re-registration
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
9fa4ac2e9a
commit
4562223420
@ -128,6 +128,12 @@ int register_image ( struct image *image ) {
|
|||||||
imgindex++ );
|
imgindex++ );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Avoid ending up with multiple "selected" images on
|
||||||
|
* re-registration
|
||||||
|
*/
|
||||||
|
if ( image_find_selected() )
|
||||||
|
image->flags &= ~IMAGE_SELECTED;
|
||||||
|
|
||||||
/* Add to image list */
|
/* Add to image list */
|
||||||
image_get ( image );
|
image_get ( image );
|
||||||
image->flags |= IMAGE_REGISTERED;
|
image->flags |= IMAGE_REGISTERED;
|
||||||
|
Reference in New Issue
Block a user