Commit cf40ab22 authored by Robby Stephenson's avatar Robby Stephenson
Browse files

debug++

parent ccc664a2
Pipeline #165684 failed with stage
in 5 minutes and 9 seconds
......@@ -66,12 +66,15 @@ void ImageJob::slotStart() {
emitResult();
} else if(m_url.isLocalFile()) {
const QString fileName = m_url.toLocalFile();
myDebug() << "ImageJob:trying to read:" << fileName << "(" << m_url << ")";
if(!QFileInfo(fileName).isReadable()) {
setError(KIO::ERR_CANNOT_OPEN_FOR_READING);
setErrorText(i18n("Tellico is unable to load the image - %1.", fileName));
} else {
myDebug() << "...permissions:" << QFileInfo(fileName).permissions();
m_image = Data::Image(fileName, m_id);
if(m_image.isNull()) {
myDebug() << "...null image";
setError(KIO::ERR_UNKNOWN);
m_image = Data::Image::null;
}
......
Supports Markdown
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