Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Office
Tellico
Commits
cf40ab22
Commit
cf40ab22
authored
Apr 19, 2022
by
Robby Stephenson
Browse files
debug++
parent
ccc664a2
Pipeline
#165684
failed with stage
in 5 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/images/imagejob.cpp
View file @
cf40ab22
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment