summaryrefslogtreecommitdiffstats
path: root/src/ui/view
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2019-03-15 14:21:30 +0000
committerTavmjong Bah <tavmjong@free.fr>2019-03-15 14:21:30 +0000
commit1602477dfd4371a17639b0b6e4f59f5a5ea9565a (patch)
tree6f4561f58d15f8b6608897e232b37658143d46e6 /src/ui/view
parentImprove deb generation and install scripts (diff)
downloadinkscape-1602477dfd4371a17639b0b6e4f59f5a5ea9565a.tar.gz
inkscape-1602477dfd4371a17639b0b6e4f59f5a5ea9565a.zip
Make InkscapeApplication responsible for managing documents and windows.
Any change from previous behavior is a bug.
Diffstat (limited to 'src/ui/view')
-rw-r--r--src/ui/view/view.cpp4
1 files changed, 2 insertions, 2 deletions
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
}
}