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;
// if (mMediaFileUrl.isRelative() && scene()->document())
// {
absoluteMediaFilename =
scene()->document()->persistencePath()
+ "/" + mMediaFileUrl.toLocalFile();
// }
// else if (!mMediaFileUrl.isRelative())
// {
// absoluteMediaFilename = mMediaFileUrl.toLocalFile();
// }
if(mMediaFileUrl.toLocalFile().startsWith("audios/") || mMediaFileUrl.toLocalFile().startsWith("videos/")){
absoluteMediaFilename = scene()->document()->persistencePath() + "/" + mMediaFileUrl.toLocalFile();
}
else{
absoluteMediaFilename = mMediaFileUrl.toLocalFile();
}
if (absoluteMediaFilename.length() > 0)
mMediaObject->setCurrentSource(Phonon::MediaSource(absoluteMediaFilename));

Loading…
Cancel
Save