diff options
author | Christian Kandeler <christian.kandeler@theqtcompany.com> | 2015-04-08 14:28:56 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@theqtcompany.com> | 2015-04-08 15:59:38 +0300 |
commit | b3bfa1cb53917dcb6690cd7181a26f247601813c (patch) | |
tree | 782edbffd864708af7b6cfb911c9cf6c8ffc525d | |
parent | c8300cf8c3362463a8ddcf24e31fd74f29bf44ec (diff) |
Restore original file position after attributes and features.
Change-Id: I95638b06bd966e7531e673be16106e14942c13c9
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
-rw-r--r-- | app/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/main.cpp b/app/main.cpp index c8fad1b..0c21e0e 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -175,8 +175,10 @@ int main(int argc, char *argv[]) QObject::connect(&header, &PerfHeader::finished, [&]() { if (!header.isPipe()) { + const qint64 filePos = infile->pos(); attributes.read(infile.data(), &header); features.read(infile.data(), &header); + infile->seek(filePos); } const QByteArray &featureArch = features.architecture(); |