From ea6d97c49df3f35c9e43f0a67dd2dca799d4157d Mon Sep 17 00:00:00 2001 From: Dave Page Date: Sun, 26 Mar 2017 21:02:15 -0400 Subject: [PATCH] Add a couple of headers that Qt 5.8 seems to be more picky about, and fix the free port check to use TCP not UDP --- runtime/pgAdmin4.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/runtime/pgAdmin4.cpp b/runtime/pgAdmin4.cpp index 0130e027e..a9ab02f79 100644 --- a/runtime/pgAdmin4.cpp +++ b/runtime/pgAdmin4.cpp @@ -16,6 +16,8 @@ #if QT_VERSION >= 0x050000 #include +#include +#include #else #include #include @@ -66,8 +68,8 @@ int main(int argc, char * argv[]) // Hence - putting this code in a code block so the scope of the socket // variable vanishes to make that socket available. { - QUdpSocket socket; - socket.bind(0, QUdpSocket::ShareAddress); + QTcpSocket socket; + socket.bind(0, QTcpSocket::ShareAddress); port = socket.localPort(); }