Fixed a assert failure when closing the client with the port list expanded

This commit is contained in:
Srivats P. 2010-04-17 18:44:20 +05:30
parent 254e7141b0
commit 3591227c0b

View File

@ -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()