diff options
-rw-r--r-- | src/lib/eio/eio_model.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/eio/eio_model.c b/src/lib/eio/eio_model.c index b01e961f8d..529582ffba 100644 --- a/src/lib/eio/eio_model.c +++ b/src/lib/eio/eio_model.c | |||
@@ -660,7 +660,6 @@ _eio_model_efl_model_property_set(Eo *obj, | |||
660 | Eio_Model_Data *pd, | 660 | Eio_Model_Data *pd, |
661 | const char *property, Eina_Value *value) | 661 | const char *property, Eina_Value *value) |
662 | { | 662 | { |
663 | Eo *loop = efl_provider_find(obj, EFL_LOOP_CLASS); | ||
664 | const char *path; | 663 | const char *path; |
665 | Eina_Future *f; | 664 | Eina_Future *f; |
666 | Eina_Value s = EINA_VALUE_EMPTY; | 665 | Eina_Value s = EINA_VALUE_EMPTY; |
@@ -683,7 +682,7 @@ _eio_model_efl_model_property_set(Eo *obj, | |||
683 | 682 | ||
684 | if (finalized) | 683 | if (finalized) |
685 | { | 684 | { |
686 | Eina_Promise *p = efl_loop_promise_new(loop, _efl_io_manager_future_cancel, NULL); | 685 | Eina_Promise *p = efl_loop_promise_new(obj, _efl_io_manager_future_cancel, NULL); |
687 | f = eina_future_new(p); | 686 | f = eina_future_new(p); |
688 | 687 | ||
689 | pd->request.move = eio_file_move(pd->path, path, | 688 | pd->request.move = eio_file_move(pd->path, path, |
@@ -697,14 +696,14 @@ _eio_model_efl_model_property_set(Eo *obj, | |||
697 | } | 696 | } |
698 | else | 697 | else |
699 | { | 698 | { |
700 | f = eina_future_resolved(efl_loop_future_scheduler_get(loop), | 699 | f = eina_future_resolved(efl_loop_future_scheduler_get(obj), |
701 | eina_value_string_init(pd->path)); | 700 | eina_value_string_init(pd->path)); |
702 | } | 701 | } |
703 | 702 | ||
704 | return efl_future_then(obj, f); | 703 | return efl_future_then(obj, f); |
705 | 704 | ||
706 | on_error: | 705 | on_error: |
707 | return eina_future_rejected(efl_loop_future_scheduler_get(loop), err); | 706 | return eina_future_rejected(efl_loop_future_scheduler_get(obj), err); |
708 | } | 707 | } |
709 | 708 | ||
710 | static void | 709 | static void |