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;
if (mMediaFileUrl.isRelative() && scene()->document())
{
// if (mMediaFileUrl.isRelative() && scene()->document())
// {
absoluteMediaFilename =
/*scene()->document()->persistencePath()
+ "/" + */mMediaFileUrl.toLocalFile();
}
else if (!mMediaFileUrl.isRelative())
{
absoluteMediaFilename = mMediaFileUrl.toLocalFile();
}
scene()->document()->persistencePath()
+ "/" + mMediaFileUrl.toLocalFile();
// }
// else if (!mMediaFileUrl.isRelative())
// {
// absoluteMediaFilename = mMediaFileUrl.toLocalFile();
// }
if (absoluteMediaFilename.length() > 0)

Loading…
Cancel
Save