Browse Source

[image] Avoid ending up with multiple selected images on re-registration

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 13 years ago
parent
commit
4562223420
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      src/core/image.c

+ 6
- 0
src/core/image.c View File

128
 			   imgindex++ );
128
 			   imgindex++ );
129
 	}
129
 	}
130
 
130
 
131
+	/* Avoid ending up with multiple "selected" images on
132
+	 * re-registration
133
+	 */
134
+	if ( image_find_selected() )
135
+		image->flags &= ~IMAGE_SELECTED;
136
+
131
 	/* Add to image list */
137
 	/* Add to image list */
132
 	image_get ( image );
138
 	image_get ( image );
133
 	image->flags |= IMAGE_REGISTERED;
139
 	image->flags |= IMAGE_REGISTERED;

Loading…
Cancel
Save