Skip to content

Commit a8dda66

Browse files
committed
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 <[email protected]>
1 parent 1fca9c3 commit a8dda66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qtsingleapplication/src/qtlocalpeer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ void QtLocalPeer::receiveConnection()
177177
return;
178178

179179
while (true) {
180-
if (socket->state() == QAbstractSocket::UnconnectedState) {
180+
if (socket->state() == QLocalSocket::UnconnectedState) {
181181
qWarning("QtLocalPeer: Peer disconnected");
182182
delete socket;
183183
return;

0 commit comments

Comments
 (0)