summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/image.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/image.c b/src/core/image.c
index 01091f1b5..86c264c26 100644
--- a/src/core/image.c
+++ b/src/core/image.c
@@ -128,6 +128,12 @@ int register_image ( struct image *image ) {
imgindex++ );
}
+ /* Avoid ending up with multiple "selected" images on
+ * re-registration
+ */
+ if ( image_find_selected() )
+ image->flags &= ~IMAGE_SELECTED;
+
/* Add to image list */
image_get ( image );
image->flags |= IMAGE_REGISTERED;