From fae8a8a65f02e87ce5f23881c7cc6f4f0cddfa0b Mon Sep 17 00:00:00 2001 From: Shatur95 Date: Sat, 10 Oct 2020 20:31:47 +0300 Subject: [PATCH 1/3] Fix conversion from int to quint32 --- singleapplication_p.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/singleapplication_p.cpp b/singleapplication_p.cpp index 7a98116..f2a95c0 100644 --- a/singleapplication_p.cpp +++ b/singleapplication_p.cpp @@ -70,7 +70,7 @@ SingleApplicationPrivate::SingleApplicationPrivate( SingleApplication *q_ptr ) server = nullptr; socket = nullptr; memory = nullptr; - instanceNumber = -1; + instanceNumber = 0; } SingleApplicationPrivate::~SingleApplicationPrivate() From a8fb6b49f57f02970f09870e999d67c01c045996 Mon Sep 17 00:00:00 2001 From: Shatur95 Date: Thu, 15 Oct 2020 01:29:25 +0300 Subject: [PATCH 2/3] Fix implicit conversion --- singleapplication_p.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/singleapplication_p.cpp b/singleapplication_p.cpp index f2a95c0..bb154bf 100644 --- a/singleapplication_p.cpp +++ b/singleapplication_p.cpp @@ -233,7 +233,7 @@ bool SingleApplicationPrivate::connectToPrimary( int timeout, ConnectionType con socket->connectToServer( blockServerName ); if( socket->state() == QLocalSocket::ConnectingState ){ - socket->waitForConnected( timeout - time.elapsed() ); + socket->waitForConnected( static_cast(timeout - time.elapsed()) ); } // If connected break out of the loop @@ -269,7 +269,7 @@ bool SingleApplicationPrivate::connectToPrimary( int timeout, ConnectionType con socket->write( header ); socket->write( initMsg ); - bool result = socket->waitForBytesWritten( timeout - time.elapsed() ); + bool result = socket->waitForBytesWritten( static_cast(timeout - time.elapsed()) ); socket->flush(); return result; } From 3d30f4f77630aac2640edf98306e14d0c914648e Mon Sep 17 00:00:00 2001 From: Shatur95 Date: Thu, 15 Oct 2020 01:56:14 +0300 Subject: [PATCH 3/3] Update install-qt-action --- .github/workflows/build-cmake.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-cmake.yml b/.github/workflows/build-cmake.yml index 86bb6ca..82a432c 100644 --- a/.github/workflows/build-cmake.yml +++ b/.github/workflows/build-cmake.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v2 - name: Install Qt - uses: jurplel/install-qt-action@v2 + uses: jurplel/install-qt-action@v2.9.0 with: version: ${{ matrix.qt_version }}