mainview: remove pointless code and guard against crash.

This commit is contained in:
Al Poole 2017-10-19 21:41:26 +01:00
parent bab76c4eef
commit e6a0cce26a
1 changed files with 3 additions and 1 deletions

View File

@ -316,7 +316,9 @@ void edi_mainview_split_current(void)
return;
panel = edi_mainview_panel_current_get();
edi_mainview_panel_focus(panel);
if (!panel->current)
return;
editor = evas_object_data_get(panel->current->view, "editor");
if (!editor)