Removed code for supporting absolute Path

preferencesAboutTextFull
Claudio Valerio 13 years ago
parent e1ee99a211
commit 15ad5c995e
  1. 18
      src/domain/UBGraphicsMediaItem.cpp

@ -65,16 +65,16 @@ QVariant UBGraphicsMediaItem::itemChange(GraphicsItemChange change, const QVaria
{ {
QString absoluteMediaFilename; QString absoluteMediaFilename;
if (mMediaFileUrl.isRelative() && scene()->document()) // if (mMediaFileUrl.isRelative() && scene()->document())
{ // {
absoluteMediaFilename = absoluteMediaFilename =
/*scene()->document()->persistencePath() scene()->document()->persistencePath()
+ "/" + */mMediaFileUrl.toLocalFile(); + "/" + mMediaFileUrl.toLocalFile();
} // }
else if (!mMediaFileUrl.isRelative()) // else if (!mMediaFileUrl.isRelative())
{ // {
absoluteMediaFilename = mMediaFileUrl.toLocalFile(); // absoluteMediaFilename = mMediaFileUrl.toLocalFile();
} // }
if (absoluteMediaFilename.length() > 0) if (absoluteMediaFilename.length() > 0)

Loading…
Cancel
Save