|
|
@ -1451,7 +1451,8 @@ void UBDocumentTreeView::dropEvent(QDropEvent *event) |
|
|
|
|
|
|
|
|
|
|
|
docModel->setHighLighted(QModelIndex()); |
|
|
|
docModel->setHighLighted(QModelIndex()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
{ |
|
|
|
if(targetIsInTrash) |
|
|
|
if(targetIsInTrash) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!UBApplication::mainWindow->yesNoQuestion(tr("Remove Item"), tr("Are you sure you want to remove the selected item(s) ?"))) |
|
|
|
if (!UBApplication::mainWindow->yesNoQuestion(tr("Remove Item"), tr("Are you sure you want to remove the selected item(s) ?"))) |
|
|
@ -1461,6 +1462,7 @@ void UBDocumentTreeView::dropEvent(QDropEvent *event) |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
docModel->moveIndexes(dropIndex, targetIndex); |
|
|
|
docModel->moveIndexes(dropIndex, targetIndex); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
expand(proxy->mapFromSource(targetIndex)); |
|
|
|
expand(proxy->mapFromSource(targetIndex)); |
|
|
|
|
|
|
|
|
|
|
|