From eb36891b84dea503fde325869003c7d6575018d9 Mon Sep 17 00:00:00 2001 From: scorpio810 Date: Fri, 24 Aug 2018 20:09:23 +0000 Subject: [PATCH] Decrease QDataStream::Version enum for support Qt version 5.5.x (Ubuntu Xenial) git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5494 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- SingleApplication/singleapplication_p.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SingleApplication/singleapplication_p.cpp b/SingleApplication/singleapplication_p.cpp index d19765329..c4c0d75fc 100644 --- a/SingleApplication/singleapplication_p.cpp +++ b/SingleApplication/singleapplication_p.cpp @@ -261,7 +261,7 @@ void SingleApplicationPrivate::slotConnectionEstablished() if( nextConnSocket->waitForReadyRead( 100 ) ) { // read the fields in same order and format as written QDataStream headerStream(nextConnSocket); - headerStream.setVersion( QDataStream::Qt_5_6 ); + headerStream.setVersion( QDataStream::Qt_5_5 ); // Read the header to know the message length quint64 msgLen = 0; @@ -271,7 +271,7 @@ void SingleApplicationPrivate::slotConnectionEstablished() // Read the message body QByteArray msgBytes = nextConnSocket->read(msgLen); QDataStream readStream(msgBytes); - readStream.setVersion( QDataStream::Qt_5_6 ); + readStream.setVersion( QDataStream::Qt_5_5 ); // server name QByteArray latin1Name;