Closing a document through python does not close the tab. Test plan: 1. Create or open a document 2. Run python script: from krita import Krita kt = Krita.instance() document = kt.activeDocument() document.close()
Created attachment 112652 [details] Simply tell the view that's about to close to close it's subwindow. Attaching the patch here since Phabricator is down.
Git commit 8fba6ddf8ebd0515ce56dbd3ae69a52d9f85f010 by Boudewijn Rempt. Committed on 15/05/2018 at 09:29. Pushed by rempt into branch 'master'. Close the view when closing a document through libkis patch by Jeroen Hoolmans, thanks! M +1 -0 libs/libkis/Document.cpp https://commits.kde.org/krita/8fba6ddf8ebd0515ce56dbd3ae69a52d9f85f010