fix popup window display behavior

Change-Id: I9a5a1631030d72d102e8b105851191d024dbb956
This commit is contained in:
石博文 2016-07-28 09:49:43 +08:00 committed by Hualet Wang
parent 5a20ec0cab
commit 636753a99f
2 changed files with 5 additions and 2 deletions

View File

@ -78,7 +78,7 @@ bool DockPopupWindow::eventFilter(QObject *o, QEvent *e)
return false;
// FIXME: ensure position move after global mouse release event
QTimer::singleShot(100, this, [this] {show(m_lastPoint, m_model);});
QTimer::singleShot(100, this, [this] {if (isVisible()) show(m_lastPoint, m_model);});
return false;
}

View File

@ -23,8 +23,11 @@ AccessPoint::AccessPoint(const QString &info)
}
AccessPoint::AccessPoint()
: QObject(nullptr),
m_strength(0),
m_secured(false),
m_securedInEap(false)
{
}
bool AccessPoint::operator==(const AccessPoint &ap) const