Commit 032ad647 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

MediaLibrary: Fix folder deletion

parent 20c6f150
......@@ -118,7 +118,10 @@ bool MediaLibrary::deleteFile( FilePtr file )
bool MediaLibrary::deleteFolder( FolderPtr folder )
{
return Folder::destroy( m_dbConnection, std::static_pointer_cast<Folder>( folder ) );
if ( Folder::destroy( m_dbConnection, std::static_pointer_cast<Folder>( folder ) ) == false )
return false;
File::clear();
return true;
}
LabelPtr MediaLibrary::createLabel( const std::string& label )
......
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