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
PIM MailImporter
Commits
d8136a05
Commit
d8136a05
authored
Mar 17, 2021
by
Laurent Montel
😁
Browse files
In Qt6 QDomDocument does not open the file itself any more
parent
a11037a0
Pipeline
#54688
passed with stage
in 13 minutes and 59 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/mailimporter/filters/filterclawsmail.cpp
View file @
d8136a05
...
...
@@ -57,6 +57,11 @@ QString FilterClawsMail::localMailDirPath()
QString
errorMsg
;
int
errorRow
;
int
errorCol
;
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
if
(
!
folderListFile
.
open
(
QIODevice
::
ReadOnly
))
{
qCWarning
(
MAILIMPORTER_LOG
)
<<
"Impossible to open "
<<
folderListFile
.
fileName
();
}
#endif
if
(
!
doc
.
setContent
(
&
folderListFile
,
&
errorMsg
,
&
errorRow
,
&
errorCol
))
{
qCDebug
(
MAILIMPORTER_LOG
)
<<
"Unable to load document.Parse error in line "
<<
errorRow
<<
", col "
<<
errorCol
<<
": "
<<
errorMsg
;
return
QString
();
...
...
src/mailimporter/filters/filtersylpheed.cpp
View file @
d8136a05
...
...
@@ -65,6 +65,11 @@ QString FilterSylpheed::localMailDirPath()
QString
errorMsg
;
int
errorRow
;
int
errorCol
;
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
if
(
!
folderListFile
.
open
(
QIODevice
::
ReadOnly
))
{
qCWarning
(
MAILIMPORTER_LOG
)
<<
"Impossible to open "
<<
folderListFile
.
fileName
();
}
#endif
if
(
!
doc
.
setContent
(
&
folderListFile
,
&
errorMsg
,
&
errorRow
,
&
errorCol
))
{
qCDebug
(
MAILIMPORTER_LOG
)
<<
"Unable to load document.Parse error in line "
<<
errorRow
<<
", col "
<<
errorCol
<<
": "
<<
errorMsg
;
return
QString
();
...
...
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