Commit afb5b654 authored by Clément Fauconnier's avatar Clément Fauconnier

don't move indexes if we're moving an document's page

parent 60b433a6
......@@ -1451,7 +1451,8 @@ void UBDocumentTreeView::dropEvent(QDropEvent *event)
docModel->setHighLighted(QModelIndex());
}
else
{
if(targetIsInTrash)
{
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{
docModel->moveIndexes(dropIndex, targetIndex);
}
}
expand(proxy->mapFromSource(targetIndex));
......
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