Linux issue fix

preferencesAboutTextFull
Anatoly Mihalchenko 13 years ago
parent 076e074e0b
commit b8b463cfd2
  1. 8
      src/board/UBBoardController.cpp

@ -1848,8 +1848,8 @@ UBGraphicsMediaItem* UBBoardController::addVideo(const QUrl& pSourceUrl, bool st
QUrl concreteUrl = pSourceUrl; QUrl concreteUrl = pSourceUrl;
#ifdef Q_WS_X11 #ifdef Q_WS_X11
concreteUrl = QUrl::fromLocalFile(mActiveDocument->persistencePath() + "/" + UBPersistenceManager::persistenceManager() concreteUrl = QUrl::fromLocalFile(selectedDocument()->persistencePath() + "/" + UBPersistenceManager::persistenceManager()
->addVideoFileToDocument(mActiveDocument, pSourceUrl.toLocalFile(), uuid)); ->addVideoFileToDocument(selectedDocument(), pSourceUrl.toLocalFile(), uuid));
#else #else
concreteUrl = QUrl::fromLocalFile(UBPersistenceManager::persistenceManager() concreteUrl = QUrl::fromLocalFile(UBPersistenceManager::persistenceManager()
->addVideoFileToDocument(selectedDocument(), pSourceUrl.toLocalFile(), uuid)); ->addVideoFileToDocument(selectedDocument(), pSourceUrl.toLocalFile(), uuid));
@ -1873,8 +1873,8 @@ UBGraphicsMediaItem* UBBoardController::addAudio(const QUrl& pSourceUrl, bool st
QUrl concreteUrl = pSourceUrl; QUrl concreteUrl = pSourceUrl;
#ifdef Q_WS_X11 #ifdef Q_WS_X11
concreteUrl = QUrl::fromLocalFile(mActiveDocument->persistencePath() + "/" + UBPersistenceManager::persistenceManager() concreteUrl = QUrl::fromLocalFile(selectedDocument()->persistencePath() + "/" + UBPersistenceManager::persistenceManager()
->addAudioFileToDocument(mActiveDocument, pSourceUrl.toLocalFile(), uuid)); ->addAudioFileToDocument(selectedDocument(), pSourceUrl.toLocalFile(), uuid));
#else #else
concreteUrl = QUrl::fromLocalFile(UBPersistenceManager::persistenceManager() concreteUrl = QUrl::fromLocalFile(UBPersistenceManager::persistenceManager()
->addAudioFileToDocument(selectedDocument(), pSourceUrl.toLocalFile(), uuid)); ->addAudioFileToDocument(selectedDocument(), pSourceUrl.toLocalFile(), uuid));

Loading…
Cancel
Save