Merge branch 'open_file_new_win'

Fix a segfault when opening a file in a new window and pressing a key immediately.
This commit is contained in:
Kelly Wilson 2015-02-01 16:30:29 -07:00
commit 7bb6bca74c
1 changed files with 4 additions and 0 deletions

View File

@ -172,6 +172,10 @@ _smart_cb_key_down(void *data EINA_UNUSED, Evas *e EINA_UNUSED,
shift = evas_key_modifier_is_set(ev->modifiers, "Shift");
item = edi_mainview_item_current_get();
if (!item)
return;
content = elm_object_item_content_get(item->view);
editor = (Edi_Editor *)evas_object_data_get(content, "editor");