Commit a869ff4c authored by Maik Qualmann's avatar Maik Qualmann

polish

parent bf54f86d
Pipeline #26033 failed with stage
in 60 minutes
......@@ -152,9 +152,9 @@ void FCTask::run()
emit signalDone();
}
bool FCTask::imageResize(const QString& orgUrl, const QString& destName)
bool FCTask::imageResize(const QString& orgPath, const QString& destPath)
{
QFileInfo fi(orgUrl);
QFileInfo fi(orgPath);
if (!fi.exists() || !fi.isReadable())
{
......@@ -163,7 +163,7 @@ bool FCTask::imageResize(const QString& orgUrl, const QString& destName)
return false;
}
QFileInfo destInfo(destName);
QFileInfo destInfo(destPath);
QFileInfo tmpDir(destInfo.dir().absolutePath());
if (!tmpDir.exists() || !tmpDir.isWritable())
......@@ -173,11 +173,11 @@ bool FCTask::imageResize(const QString& orgUrl, const QString& destName)
return false;
}
DImg img = PreviewLoadThread::loadFastSynchronously(orgUrl, d->settings.imageResize);
DImg img = PreviewLoadThread::loadFastSynchronously(orgPath, d->settings.imageResize);
if (img.isNull())
{
img.load(orgUrl);
img.load(orgPath);
}
if (!img.isNull())
......@@ -253,7 +253,7 @@ bool FCTask::imageResize(const QString& orgUrl, const QString& destName)
return false;
}
DFileOperations::copyModificationTime(orgUrl, destFile);
DFileOperations::copyModificationTime(orgPath, destFile);
return true;
}
......
......@@ -59,7 +59,7 @@ protected:
private:
bool imageResize(const QString& orgUrl, const QString& destName);
bool imageResize(const QString& orgPath, const QString& destPath);
void deleteTargetFile(const QString& filePath);
class Private;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment