diff options
| author | Christoph Berg <christoph.berg@credativ.de> | 2020-06-26 09:28:37 +0200 |
|---|---|---|
| committer | Christoph Berg <christoph.berg@credativ.de> | 2020-06-26 09:28:37 +0200 |
| commit | 28f34ff4908a90b1a7323b2988c33cdb1779fa06 (patch) | |
| tree | 441994b458ea44a1c1019a365d4ec379c34da04f /Network/MessageClient.cpp | |
| parent | ee0e1a654b7e64accea78a5aa66ec1e62bd352c8 (diff) | |
New upstream version 2.2.2+repackupstream/2.2.2+repack
Diffstat (limited to 'Network/MessageClient.cpp')
| -rw-r--r-- | Network/MessageClient.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Network/MessageClient.cpp b/Network/MessageClient.cpp index ddf26956..d33b2a63 100644 --- a/Network/MessageClient.cpp +++ b/Network/MessageClient.cpp @@ -423,6 +423,7 @@ MessageClient::MessageClient (QString const& id, QString const& version, QString : QObject {self} , m_ {id, version, revision, server_port, this} { +#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0) connect (&*m_, static_cast<void (impl::*) (impl::SocketError)> (&impl::error) , [this] (impl::SocketError e) { @@ -441,6 +442,11 @@ MessageClient::MessageClient (QString const& id, QString const& version, QString Q_EMIT error (m_->errorString ()); } }); +#else + connect (&*m_, &impl::errorOccurred, [this] (impl::SocketError) { + Q_EMIT error (m_->errorString ()); + }); +#endif set_server (server); } |
