|
|
|
@ -1753,13 +1753,8 @@ UBGraphicsVideoItem* UBBoardController::addVideo(const QUrl& pSourceUrl, bool st |
|
|
|
|
QUuid uuid = QUuid::createUuid(); |
|
|
|
|
QUrl concreteUrl = pSourceUrl; |
|
|
|
|
|
|
|
|
|
#ifdef Q_WS_X11 |
|
|
|
|
concreteUrl = QUrl::fromLocalFile(mActiveDocument->persistencePath() + "/" + UBPersistenceManager::persistenceManager() |
|
|
|
|
->addVideoFileToDocument(mActiveDocument, pSourceUrl.toLocalFile(), uuid)); |
|
|
|
|
#else |
|
|
|
|
concreteUrl = QUrl::fromLocalFile(UBPersistenceManager::persistenceManager() |
|
|
|
|
->addVideoFileToDocument(mActiveDocument, pSourceUrl.toLocalFile(), uuid)); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
UBGraphicsVideoItem* vi = mActiveScene->addVideo(concreteUrl, startPlay, pos); |
|
|
|
|
mActiveDocument->setMetaData(UBSettings::documentUpdatedAt, UBStringUtils::toUtcIsoDateTime(QDateTime::currentDateTime())); |
|
|
|
|