elc_fileselector.c: check null path before fileselector populate.
authorDaniel Juyung Seo <seojuyung2@gmail.com>
Wed, 12 Jun 2013 06:03:47 +0000 (15:03 +0900)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Wed, 12 Jun 2013 06:03:49 +0000 (15:03 +0900)
If no path was selected we don't need to populate fileselector.
This fixes https://phab.enlightenment.org/T132.
Thanks uartie for the report.

src/lib/elc_fileselector.c

index a706416..7aafda5 100644 (file)
@@ -417,6 +417,7 @@ _populate(Evas_Object *obj,
           Elm_Object_Item *parent_it)
 {
    ELM_FILESELECTOR_DATA_GET(obj, sd);
+   if (!path) return;
 
 #ifdef HAVE_EIO
    Listing_Request *lreq;