Fix bug with lost primary node in rootview
It was possible to lose the primary node thus possibly preventing the opening of new documents.
This commit is contained in:
@@ -131,6 +131,9 @@ function Node:close_active_view(root)
|
|||||||
p = p[is_a and "a" or "b"]
|
p = p[is_a and "a" or "b"]
|
||||||
end
|
end
|
||||||
p:set_active_view(p.active_view)
|
p:set_active_view(p.active_view)
|
||||||
|
if self.is_primary_node then
|
||||||
|
p.is_primary_node = true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
core.last_active_view = nil
|
core.last_active_view = nil
|
||||||
|
|||||||
Reference in New Issue
Block a user