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
SDK
libkomparediff2
Commits
e9ed555b
Commit
e9ed555b
authored
Jul 21, 2021
by
Kevin Kofler
Browse files
Merge branch 'release/21.08'
parents
9827753b
99b1d147
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/komparemodellist.cpp
View file @
e9ed555b
...
...
@@ -415,7 +415,15 @@ bool KompareModelList::saveDestination(DiffModel* model)
{
qCDebug
(
LIBKOMPAREDIFF2
)
<<
"Tempfilename : "
<<
temp
.
fileName
();
qCDebug
(
LIBKOMPAREDIFF2
)
<<
"DestinationURL : "
<<
m_info
->
destination
;
KIO
::
FileCopyJob
*
copyJob
=
KIO
::
file_copy
(
QUrl
::
fromLocalFile
(
temp
.
fileName
()),
m_info
->
destination
,
-
1
,
KIO
::
Overwrite
);
// Get permissions of existing file and copy temporary file with the same permissions
int
permissions
=
-
1
;
KIO
::
StatJob
*
statJob
=
KIO
::
stat
(
m_info
->
destination
);
result
=
statJob
->
exec
();
if
(
result
)
permissions
=
statJob
->
statResult
().
numberValue
(
KIO
::
UDSEntry
::
UDS_ACCESS
);
KIO
::
FileCopyJob
*
copyJob
=
KIO
::
file_copy
(
QUrl
::
fromLocalFile
(
temp
.
fileName
()),
m_info
->
destination
,
permissions
,
KIO
::
Overwrite
);
result
=
copyJob
->
exec
();
qCDebug
(
LIBKOMPAREDIFF2
)
<<
"true or false?"
<<
result
;
}
...
...
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