[evolution] Remove the two of FIXME WK2



commit 087bb6fd285fc4267abb9bfa47d8055f63ddc68f
Author: Tomas Popela <tpopela redhat com>
Date:   Mon Aug 15 11:05:24 2016 +0200

    Remove the two of FIXME WK2

 .../web-extension/e-editor-dom-functions.c         |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/modules/webkit-editor/web-extension/e-editor-dom-functions.c 
b/modules/webkit-editor/web-extension/e-editor-dom-functions.c
index b644666..78cb5e4 100644
--- a/modules/webkit-editor/web-extension/e-editor-dom-functions.c
+++ b/modules/webkit-editor/web-extension/e-editor-dom-functions.c
@@ -3891,9 +3891,6 @@ e_editor_dom_body_key_up_event_process_return_key (EEditorPage *editor_page)
        if (e_editor_page_get_html_mode (editor_page))
                return;
 
-       /* FIXME WK2 this is called twice */
-       /* e_editor_dom_selection_save (editor_page); */
-
        document = e_editor_page_get_document (editor_page);
        e_editor_dom_selection_save (editor_page);
 
@@ -10640,8 +10637,8 @@ e_editor_dom_save_history_for_drop (EEditorPage *editor_page)
         * body_input_event_cb and is wrong as its type is HISTORY_INPUT. */
        /* FIXME we could probably disable the HTML input event callback while
         * doing DnD within the view */
-       /* FIXME WK2 - what if e_editor_undo_redo_manager_get_current_history_event() returns NULL? */
-       if (((EEditorHistoryEvent *) (e_editor_undo_redo_manager_get_current_history_event (manager)))->type 
== HISTORY_INPUT)
+       event = e_editor_undo_redo_manager_get_current_history_event (manager);
+       if (event && event->type == HISTORY_INPUT)
                e_editor_undo_redo_manager_remove_current_history_event (manager);
 
        event = g_new0 (EEditorHistoryEvent, 1);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]