fix(network): ap state error when hotspot open

Change-Id: Iac2fb1b241dd08993ab99b1c08d74661ef5a3925
This commit is contained in:
石博文 2017-10-20 16:59:47 +08:00
parent 3197c97dd8
commit 62eae0435f
Notes: Deepin Code Review 2017-10-25 14:41:57 +08:00
Verified+1: Anonymous Coward #1000004
Code-Review+2: 石博文 <sbw@sbw.so>
Submitted-by: 石博文 <sbw@sbw.so>
Submitted-at: Wed, 25 Oct 2017 14:41:57 +0800
Reviewed-on: https://cr.deepin.io/27266
Project: dde/dde-dock
Branch: refs/heads/master

View File

@ -93,6 +93,7 @@ WirelessList::WirelessList(const QSet<NetworkDevice>::const_iterator &deviceIter
connect(m_updateAPTimer, &QTimer::timeout, this, &WirelessList::updateAPList);
connect(this, &WirelessList::activeAPChanged, m_updateAPTimer, static_cast<void (QTimer::*)()>(&QTimer::start));
connect(this, &WirelessList::wirelessStateChanged, m_updateAPTimer, static_cast<void (QTimer::*)()>(&QTimer::start));
connect(m_networkInter, &DBusNetwork::NeedSecretsFinished, m_pwdDialog, &DInputDialog::close);
connect(m_pwdDialog, &DInputDialog::textValueChanged, this, &WirelessList::onPwdDialogTextChanged);
@ -301,12 +302,10 @@ void WirelessList::deviceStateChanged()
if (prevInfo.activeAp() != m_device.activeAp())
onActiveAPChanged();
break;
return;
}
}
break;
}
}
void WirelessList::onActiveAPChanged()