From 1602477dfd4371a17639b0b6e4f59f5a5ea9565a Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Fri, 15 Mar 2019 15:21:30 +0100 Subject: Make InkscapeApplication responsible for managing documents and windows. Any change from previous behavior is a bug. --- src/ui/view/view.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/view/view.cpp') diff --git a/src/ui/view/view.cpp b/src/ui/view/view.cpp index 4395357e0..3b2b7f229 100644 --- a/src/ui/view/view.cpp +++ b/src/ui/view/view.cpp @@ -84,7 +84,7 @@ void View::_close() { _document_resized_connection.disconnect(); if (INKSCAPE.remove_document(_doc)) { // this was the last view of this document, so delete it - delete _doc; + // delete _doc; Delete now handled in Inkscape::Application } _doc = nullptr; } @@ -110,7 +110,7 @@ void View::setDocument(SPDocument *doc) { _document_resized_connection.disconnect(); if (INKSCAPE.remove_document(_doc)) { // this was the last view of this document, so delete it - delete _doc; + // delete _doc; Delete now handled in Inkscape::Application } } -- cgit v1.2.3