mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-06-05 16:12:30 -04:00
Fix merging issue
This commit is contained in:
parent
7bb5a8e009
commit
1f524026f9
@ -428,24 +428,22 @@ MessageClient::MessageClient (QString const& id, QString const& version, QString
|
|||||||
{
|
{
|
||||||
connect (&*m_
|
connect (&*m_
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
|
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
|
||||||
connect (&*m_, static_cast<void (impl::*) (impl::SocketError)> (&impl::error)
|
, static_cast<void (impl::*) (impl::SocketError)> (&impl::error), [this] (impl::SocketError e)
|
||||||
, [this] (impl::SocketError e) {
|
|
||||||
#else
|
#else
|
||||||
connect (&*m_, &impl::errorOccurred, [this] (impl::SocketError e) {
|
, &impl::errorOccurred, [this] (impl::SocketError e)
|
||||||
#endif
|
|
||||||
#if defined (Q_OS_WIN)
|
|
||||||
// take this out when Qt 5.5 stops doing this spuriously
|
|
||||||
if (e != impl::NetworkError
|
|
||||||
// not interested in this with UDP socket
|
|
||||||
&& e != impl::ConnectionRefusedError)
|
|
||||||
#else
|
|
||||||
Q_UNUSED (e);
|
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
#if defined (Q_OS_WIN)
|
||||||
|
if (e != impl::NetworkError // take this out when Qt 5.5 stops doing this spuriously
|
||||||
|
&& e != impl::ConnectionRefusedError) // not interested in this with UDP socket
|
||||||
|
{
|
||||||
|
#else
|
||||||
|
{
|
||||||
|
Q_UNUSED (e);
|
||||||
|
#endif
|
||||||
Q_EMIT error (m_->errorString ());
|
Q_EMIT error (m_->errorString ());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
set_server (server);
|
set_server (server);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user