Commit 3aed8fc1 authored by Clément Fauconnier's avatar Clément Fauconnier

improved document thumbnails and selection behaviors

parent 41c50a2c
......@@ -151,8 +151,8 @@ void UBDocumentContainer::reloadThumbnails()
if (mCurrentDocument)
{
UBThumbnailAdaptor::load(mCurrentDocument, mDocumentThumbs);
emit documentThumbnailsUpdated(this);
}
emit documentThumbnailsUpdated(this);
}
int UBDocumentContainer::pageFromSceneIndex(int sceneIndex)
......
......@@ -2335,6 +2335,7 @@ void UBDocumentController::moveIndexesToTrash(const QModelIndexList &list, UBDoc
UBDocumentProxy *proxy = docModel->proxyForIndex(sourceSibling);
docModel->setCurrentDocument(proxy);
setDocument(proxy);
selectionModel->select(sibling, QItemSelectionModel::ClearAndSelect);
......@@ -2348,6 +2349,7 @@ void UBDocumentController::moveIndexesToTrash(const QModelIndexList &list, UBDoc
UBDocumentProxy *proxy = docModel->proxyForIndex(sourceSibling);
docModel->setCurrentDocument(proxy);
setDocument(proxy);
selectionModel->select(sibling, QItemSelectionModel::ClearAndSelect);
......
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