Commit c88e23f3 authored by Claudio Valerio's avatar Claudio Valerio

Fixed issue sankore-35 and sankore-34

parent 27b93bb2
......@@ -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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment