mirror of
https://github.com/QuasarApp/qt-solutions.git
synced 2025-04-29 23:14:35 +00:00
QtSingleApplication: compiler warning about enum comparison
Compiler outputs a warning because of comparison between QLocalSocket::LocalSocketState and QAbstractSocket::SocketState. Change-Id: Idbae5c3c32a32324e07972e0bb0808fc40ef7624 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
parent
1fca9c330d
commit
a8dda66d77
@ -177,7 +177,7 @@ void QtLocalPeer::receiveConnection()
|
||||
return;
|
||||
|
||||
while (true) {
|
||||
if (socket->state() == QAbstractSocket::UnconnectedState) {
|
||||
if (socket->state() == QLocalSocket::UnconnectedState) {
|
||||
qWarning("QtLocalPeer: Peer disconnected");
|
||||
delete socket;
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user