Fixed a assert failure when closing the client with the port list expanded
This commit is contained in:
parent
254e7141b0
commit
3591227c0b
@ -78,7 +78,16 @@ PortGroup::~PortGroup()
|
||||
void PortGroup::on_rpcChannel_stateChanged(QAbstractSocket::SocketState state)
|
||||
{
|
||||
qDebug("state changed %d", state);
|
||||
emit portGroupDataChanged(mPortGroupId);
|
||||
|
||||
switch (state)
|
||||
{
|
||||
case QAbstractSocket::UnconnectedState:
|
||||
case QAbstractSocket::ClosingState:
|
||||
break;
|
||||
|
||||
default:
|
||||
emit portGroupDataChanged(mPortGroupId);
|
||||
}
|
||||
}
|
||||
|
||||
void PortGroup::on_rpcChannel_connected()
|
||||
|
Loading…
Reference in New Issue
Block a user