From d1ba52eb66032ca36d33068410262678edffa339 Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Thu, 27 Jun 2013 16:35:34 +0200 Subject: [PATCH] on document mode is possible to remove the first page if the document contains more than one page --- src/document/UBDocumentController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/document/UBDocumentController.cpp b/src/document/UBDocumentController.cpp index 9de9d52e..880c0c16 100644 --- a/src/document/UBDocumentController.cpp +++ b/src/document/UBDocumentController.cpp @@ -1189,7 +1189,7 @@ void UBDocumentController::selectionChanged() deleteEnabled = false; } - if(pageSelected && firstSceneSelected) + if(pageSelected && pageCount == 1) deleteEnabled = false; mMainWindow->actionDelete->setEnabled(deleteEnabled);