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
PIM
KItinerary
Commits
dde9df25
Commit
dde9df25
authored
Mar 30, 2021
by
Volker Krause
Browse files
Fix PDF file name detection
parent
33598c1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/processors/externalprocessor.cpp
View file @
dde9df25
...
...
@@ -37,7 +37,7 @@ ExternalProcessor::~ExternalProcessor() = default;
bool
ExternalProcessor
::
canHandleData
(
const
QByteArray
&
encodedData
,
QStringView
fileName
)
const
{
return
PdfDocument
::
maybePdf
(
encodedData
)
||
fileName
.
endsWith
(
QLatin1String
(
".pdf"
,
Qt
::
CaseInsensitive
)
)
;
return
PdfDocument
::
maybePdf
(
encodedData
)
||
fileName
.
endsWith
(
QLatin1String
(
".pdf"
)
,
Qt
::
CaseInsensitive
);
}
ExtractorDocumentNode
ExternalProcessor
::
createNodeFromData
(
const
QByteArray
&
encodedData
)
const
...
...
Write
Preview
Markdown
is supported
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