From 4780b5ac8460bbc59215c348fcb3a275508d6331 Mon Sep 17 00:00:00 2001 From: Johann Latocha Date: Tue, 29 Mar 2011 17:36:02 +0200 Subject: Autoconnect bug fixed (validation) --- src/net/pvsServiceDiscovery.h | 2 +- src/pvs.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/net/pvsServiceDiscovery.h b/src/net/pvsServiceDiscovery.h index 08a38b8..58e0ab6 100644 --- a/src/net/pvsServiceDiscovery.h +++ b/src/net/pvsServiceDiscovery.h @@ -33,6 +33,7 @@ public: void connectToSession(QString name, QString passwd); bool nameExists(QString name); QStringList getAllServers(); + void handleDiscovery(QHostAddress host, int port, QByteArray hash); protected: void timerEvent(QTimerEvent *event); @@ -42,7 +43,6 @@ private Q_SLOTS: void sendServerToGui(PVSDiscoveredServer*); private: - void handleDiscovery(QHostAddress host, int port, QByteArray hash); void setTimerInterval(); QUdpSocket _sock; QString _sessionName; diff --git a/src/pvs.cpp b/src/pvs.cpp index 296c8a4..d987164 100644 --- a/src/pvs.cpp +++ b/src/pvs.cpp @@ -102,6 +102,7 @@ PVS::PVS() : { qDebug() << "Autoconnecting to " << host.toString(); PVSDiscoveredServer* server = new PVSDiscoveredServer(this, host, port, fingerprint, name); + _sdClient->handleDiscovery(host, port, fingerprint); connectToHost(server, ""); } else -- cgit v1.2.3-55-g7522