summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-05-28 11:28:44 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-05-28 11:28:44 -0400
commitd2ce216f6d8b1d204750f506498a0144077d7ad8 (patch)
treec49a98f2dcecd38572e417877406e8083839c346 /src
parentde9c5b31c57f8e318fa6e90760be6db6d1cf01bc (diff)
handle case where metadata fails to return an image object to bg_add on update
Diffstat (limited to 'src')
-rw-r--r--src/bin/empc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/empc.c b/src/bin/empc.c
index 47289bb..bb9996c 100644
--- a/src/bin/empc.c
+++ b/src/bin/empc.c
@@ -768,13 +768,13 @@ bg_add(void *data EINA_UNUSED, Empc_Fetch_Request *req, Evas_Object *obj)
768{ 768{
769 Evas_Object *parent; 769 Evas_Object *parent;
770 770
771 parent = elm_object_parent_widget_get(obj);
772 if (!obj) 771 if (!obj)
773 { 772 {
774 if (!bgselector_get(parent)) 773 if (!bgchooser)
775 elm_object_signal_emit(layout, "empc,info,show", "empc"); 774 elm_object_signal_emit(layout, "empc,info,show", "empc");
776 return; 775 return;
777 } 776 }
777 parent = elm_object_parent_widget_get(obj);
778 bgselector_image_add(parent, obj); 778 bgselector_image_add(parent, obj);
779 if (!bgchooser) 779 if (!bgchooser)
780 save_image(EINA_FALSE, obj, NULL, req->artist, req->album, (master && (!bg_updated)) ? bg_update_signal : NULL); 780 save_image(EINA_FALSE, obj, NULL, req->artist, req->album, (master && (!bg_updated)) ? bg_update_signal : NULL);