From: tobtoht Date: Fri, 21 Apr 2023 16:13:53 +0000 (+0200) Subject: Utils: portOpen: remove QIODeviceBase::ReadOnly for qt5 compat X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=a89d20887f29d1269a1302b701640bbd5330610f;p=gamesguru%2Ffeather.git Utils: portOpen: remove QIODeviceBase::ReadOnly for qt5 compat --- diff --git a/src/utils/Utils.cpp b/src/utils/Utils.cpp index f012c00c..75b5280d 100644 --- a/src/utils/Utils.cpp +++ b/src/utils/Utils.cpp @@ -298,7 +298,7 @@ bool portOpen(const QString &hostname, quint16 port) { // TODO: this call should qDebug() << QString("Checking for open port on: %1:%2").arg(hostname, QString::number(port)); QTcpSocket socket; - socket.connectToHost(hostname, port, QIODeviceBase::ReadOnly); + socket.connectToHost(hostname, port); bool res = socket.waitForConnected(1000); qDebug() << QString("Port " + (res ? QString("Open") : QString("Closed"))); if (!res) {