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)
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