summaryrefslogtreecommitdiff
path: root/src/gui/core/items.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/core/items.c')
-rw-r--r--src/gui/core/items.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/core/items.c b/src/gui/core/items.c
index 68d2556..dff177d 100644
--- a/src/gui/core/items.c
+++ b/src/gui/core/items.c
@@ -88,6 +88,9 @@ void change_editor_items_current_content(GLoadedContent *content)
{
_first_content_change = false;
+ if (content != NULL)
+ g_object_ref(G_OBJECT(content));
+
set_current_content(content);
editem_list_for_each(iter, _editem_list)
@@ -196,6 +199,9 @@ void change_editor_items_current_view(GLoadedPanel *panel)
{
_first_panel_change = false;
+ if (panel != NULL)
+ g_object_ref(G_OBJECT(panel));
+
set_current_view(panel);
editem_list_for_each(iter, _editem_list)