From c88e23f34daf23f0fa01f85d9640287e4db2125a Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Wed, 25 May 2011 10:37:25 +0200 Subject: [PATCH] Fixed issue sankore-35 and sankore-34 --- src/gui/UBLibActionBar.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/UBLibActionBar.cpp b/src/gui/UBLibActionBar.cpp index 7359cb64..cf874ff9 100644 --- a/src/gui/UBLibActionBar.cpp +++ b/src/gui/UBLibActionBar.cpp @@ -473,7 +473,10 @@ void UBLibActionBar::onNavigbarUpdate(UBLibElement *crntElem) { if(crntElem->type() == eUBLibElementType_Folder) { - mpNewFolderBtn->setEnabled(true); + if(libraryController()->canItemsOnElementBeDeleted(crntElem) && !bIsInTrash) + mpNewFolderBtn->setEnabled(true); + else + mpNewFolderBtn->setEnabled(false); } else {