bad hack for linux

preferencesAboutTextFull
Claudio Valerio 13 years ago
parent 045acf5a60
commit e03e8f5494
  1. 17
      src/domain/UBGraphicsMediaItem.cpp

@ -66,17 +66,12 @@ QVariant UBGraphicsMediaItem::itemChange(GraphicsItemChange change, const QVaria
{ {
QString absoluteMediaFilename; QString absoluteMediaFilename;
// if (mMediaFileUrl.isRelative() && scene()->document()) if(mMediaFileUrl.toLocalFile().startsWith("audios/") || mMediaFileUrl.toLocalFile().startsWith("videos/")){
// { absoluteMediaFilename = scene()->document()->persistencePath() + "/" + mMediaFileUrl.toLocalFile();
absoluteMediaFilename = }
scene()->document()->persistencePath() else{
+ "/" + mMediaFileUrl.toLocalFile(); absoluteMediaFilename = mMediaFileUrl.toLocalFile();
// } }
// else if (!mMediaFileUrl.isRelative())
// {
// absoluteMediaFilename = mMediaFileUrl.toLocalFile();
// }
if (absoluteMediaFilename.length() > 0) if (absoluteMediaFilename.length() > 0)
mMediaObject->setCurrentSource(Phonon::MediaSource(absoluteMediaFilename)); mMediaObject->setCurrentSource(Phonon::MediaSource(absoluteMediaFilename));

Loading…
Cancel
Save