summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@theqtcompany.com>2015-04-08 14:28:56 +0200
committerChristian Kandeler <christian.kandeler@theqtcompany.com>2015-04-08 15:59:38 +0300
commitb3bfa1cb53917dcb6690cd7181a26f247601813c (patch)
tree782edbffd864708af7b6cfb911c9cf6c8ffc525d
parentc8300cf8c3362463a8ddcf24e31fd74f29bf44ec (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.cpp2
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();