OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2048a75
)
clear size metadata attribute from QFSFileEngine::setSize()
author
Ivailo Monev
<xakepa10@gmail.com>
Mon, 2 Aug 2021 18:51:04 +0000
(21:51 +0300)
committer
Ivailo Monev
<xakepa10@gmail.com>
Mon, 2 Aug 2021 18:51:04 +0000
(21:51 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/core/io/qfsfileengine_unix.cpp
patch
|
blob
|
history
diff --git
a/src/core/io/qfsfileengine_unix.cpp
b/src/core/io/qfsfileengine_unix.cpp
index
2927387
..
2924c4f
100644
(file)
--- a/
src/core/io/qfsfileengine_unix.cpp
+++ b/
src/core/io/qfsfileengine_unix.cpp
@@
-354,6
+354,7
@@
bool QFSFileEngine::setSize(qint64 size)
ret = QT_FTRUNCATE(d->fd, size) == 0;
else
ret = QT_TRUNCATE(d->fileEntry.nativeFilePath().constData(), size) == 0;
+ d->metaData.clearFlags(QFileSystemMetaData::SizeAttribute);
if (!ret)
setError(QFile::ResizeError, qt_error_string(errno));
return ret;