improved editor loading
authorVladimir Nadvornik <nadvornik@suse.cz>
Sun, 6 Sep 2009 14:29:19 +0000 (14:29 +0000)
committerVladimir Nadvornik <nadvornik@suse.cz>
Sun, 6 Sep 2009 14:29:19 +0000 (14:29 +0000)
src/layout_util.c

index 7707ad5..b1257aa 100644 (file)
@@ -1987,6 +1987,9 @@ void layout_editors_reload_start(void)
                }
 
        work = layout_window_list;
+
+#if 0
+/* it should be enough to remove the old editors after the new ones are loaded, in layout_actions_setup_editors */
        while (work)
                {
                LayoutWindow *lw = work->data;
@@ -1997,6 +2000,7 @@ void layout_editors_reload_start(void)
                g_object_unref(lw->action_group_editors);
                lw->action_group_editors = NULL;
                }
+#endif
        editor_table_clear();
        layout_editors_reload_idle_id = g_idle_add(layout_editors_reload_idle_cb, NULL);
 }