if(UBApplication::mainWindow->yesNoQuestion(tr("Remove Document"),tr("Are you sure you want to remove the document '%1'?").arg(proxyTi->proxy()->metaData(UBSettings::documentName).toString())))
{
if(proxyTi->parent()!=mTrashTi)
{
// We have to move document into Trash
// Select another document for processing
// This is for Board, where this document can be selected
if(UBApplication::mainWindow->yesNoQuestion(tr("Remove Folder"),tr("Are you sure you want to remove the folder '%1' and all its content?").arg(groupTi->groupName())))
if(UBApplication::mainWindow->yesNoQuestion(tr("Remove Document"),tr("Are you sure you want to remove the document '%1'?").arg(proxyTi->proxy()->metaData(UBSettings::documentName).toString())))
if(UBApplication::mainWindow->yesNoQuestion(tr("Remove Folder"),tr("Are you sure you want to remove the folder '%1' and all its content?").arg(groupTi->groupName())))
/* this is performed because when removing delegated from scene while it contains flash content, segfault happens because of QGraphicsScene::removeItem() */