Fix a new test_documentcontroller test failure
300ea014 introduced DocumentControllerPrivate::shuttingDown variable. It is set to false in constructor and to true in DocumentController::cleanup(). However TestDocumentController::init() calls DocumentController::initialize() before each test function; TestDocumentController::cleanup() calls DocumentController::cleanup() after each test function. So the second test function fails to open a document after shutdown. Let us set DocumentControllerPrivate::shuttingDown to false in DocumentController::initialize() to fix the test failure.
Showing with 3 additions and 0 deletions