|
|
@ -1032,12 +1032,13 @@ bool UBDocumentController::addFileToDocument(UBDocumentProxy* document) |
|
|
|
|
|
|
|
|
|
|
|
void UBDocumentController::moveSceneToIndex(UBDocumentProxy* proxy, int source, int target) |
|
|
|
void UBDocumentController::moveSceneToIndex(UBDocumentProxy* proxy, int source, int target) |
|
|
|
{ |
|
|
|
{ |
|
|
|
UBDocumentContainer::movePageToIndex(source, target); |
|
|
|
if (UBDocumentContainer::movePageToIndex(source, target)) |
|
|
|
|
|
|
|
{ |
|
|
|
proxy->setMetaData(UBSettings::documentUpdatedAt, UBStringUtils::toUtcIsoDateTime(QDateTime::currentDateTime())); |
|
|
|
proxy->setMetaData(UBSettings::documentUpdatedAt, UBStringUtils::toUtcIsoDateTime(QDateTime::currentDateTime())); |
|
|
|
UBMetadataDcSubsetAdaptor::persist(proxy); |
|
|
|
UBMetadataDcSubsetAdaptor::persist(proxy); |
|
|
|
|
|
|
|
|
|
|
|
mDocumentUI->thumbnailWidget->hightlightItem(target); |
|
|
|
mDocumentUI->thumbnailWidget->hightlightItem(target); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|