From 681acce85b5d0da172cf12cf8705d74b82e3b90f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Fauconnier?= Date: Wed, 19 Sep 2018 17:18:30 +0200 Subject: [PATCH] last fix before uat --- src/document/UBDocumentController.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/document/UBDocumentController.cpp b/src/document/UBDocumentController.cpp index e9addae4..13402dc2 100644 --- a/src/document/UBDocumentController.cpp +++ b/src/document/UBDocumentController.cpp @@ -2357,6 +2357,10 @@ void UBDocumentController::moveIndexesToTrash(const QModelIndexList &list, UBDoc } } + else + { + setDocument(NULL); + } docModel->moveIndexes(list, docModel->trashIndex());