removed bad fix. Duplication of imported image

preferencesAboutTextFull
Claudio Valerio 10 years ago
parent 47adb2be02
commit 9df8c0f823
  1. 11
      src/adaptors/UBImportImage.cpp

@ -101,17 +101,6 @@ QList<UBGraphicsItem*> UBImportImage::import(const QUuid& uuid, const QString& f
pixmapItem->setPixmap(pix);
result << pixmapItem;
QString documentPath = UBApplication::boardController->selectedDocument()->persistencePath();
QString fileName = UBPersistenceManager::imageDirectory + "/" + pixmapItem->uuid().toString() + ".png";
QString path = documentPath + "/" + fileName;
if (!QFile::exists(path))
{
QDir dir;
dir.mkdir(documentPath + "/" + UBPersistenceManager::imageDirectory);
pixmapItem->pixmap().toImage().save(path, "PNG");
}
return result;
}

Loading…
Cancel
Save