X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fgenversion.cpp;h=f0f746bb05885c09d5bc7b00e9917ce9e29f98ab;hb=9c15e81b15a20e861c707e240c2cfee56bdf4bc9;hp=5b8c4a1b87f74196606be8ad19853063b2feb86d;hpb=3653e1882ddd26706246f58b769f6ba5b63107d8;p=quassel.git diff --git a/src/common/genversion.cpp b/src/common/genversion.cpp index 5b8c4a1b..f0f746bb 100644 --- a/src/common/genversion.cpp +++ b/src/common/genversion.cpp @@ -125,6 +125,7 @@ int main(int argc, char **argv) { QByteArray oldContents = gen.readAll(); if(oldContents != contents) { // only touch the file if something changed gen.seek(0); + gen.resize(0); gen.write(contents); gen.waitForBytesWritten(10000); }