summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_view_list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_view_list.c')
-rw-r--r--src/lib/elementary/elm_view_list.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/elementary/elm_view_list.c b/src/lib/elementary/elm_view_list.c
index 3ccf1d6..9c52b18 100644
--- a/src/lib/elementary/elm_view_list.c
+++ b/src/lib/elementary/elm_view_list.c
@@ -6,7 +6,7 @@
6#include <Elementary.h> 6#include <Elementary.h>
7 7
8#include "elm_priv.h" 8#include "elm_priv.h"
9#include "elm_genlist.eo.h" 9#include "elm_genlist_eo.h"
10 10
11#include <assert.h> 11#include <assert.h>
12 12
@@ -108,7 +108,8 @@ _item_content_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part)
108 if (!idata->item) return NULL; 108 if (!idata->item) return NULL;
109 109
110 prop = eina_hash_find(idata->priv->connect.properties, part); 110 prop = eina_hash_find(idata->priv->connect.properties, part);
111 if (!prop) prop = part; 111 // If no property are connected, let's not try to guess randomly.
112 if (!prop) return NULL;
112 113
113 value = efl_model_property_get(idata->model, prop); 114 value = efl_model_property_get(idata->model, prop);
114 if (value == NULL) return NULL; 115 if (value == NULL) return NULL;
@@ -432,4 +433,4 @@ _elm_view_list_model_get(const Eo *obj EINA_UNUSED, Elm_View_List_Data *priv)
432{ 433{
433 return priv->connect.model; 434 return priv->connect.model;
434} 435}
435#include "elm_view_list.eo.c" 436#include "elm_view_list_eo.c"