最小化后无法显示问题

This commit is contained in:
jzxc95 2023-03-15 14:37:42 +08:00
parent 4bf00ec0c9
commit 965af49351
4 changed files with 5 additions and 1 deletions

View File

@ -549,6 +549,7 @@ void WlanListItem::onNetButtonClicked()
if (m_wirelessNetItem.m_secuType.contains("802.1x", Qt::CaseInsensitive)) {
if (isEnterpriseWlanDialogShow && enterpriseWlanDialog != nullptr) {
qDebug() << LOG_FLAG <<"EnterpriseWlanDialog is show do not show again!";
KWindowSystem::activateWindow(enterpriseWlanDialog->winId());
KWindowSystem::raiseWindow(enterpriseWlanDialog->winId());
return;
} else {

View File

@ -815,7 +815,7 @@ void MainWindow::showCreateWiredConnectWidget(const QString devName)
if (m_createPagePtrMap.contains(devName)) {
if (m_createPagePtrMap[devName] != nullptr) {
qDebug() << "showCreateWiredConnectWidget" << devName << "already create,just raise";
KWindowSystem::activateWindow(m_createPagePtrMap[devName]->winId());
KWindowSystem::raiseWindow(m_createPagePtrMap[devName]->winId());
return;
}

View File

@ -1253,6 +1253,7 @@ void LanPage::showDetailPage(QString devName, QString uuid)
if (m_lanPagePtrMap.contains(p_item->m_connectPath)) {
if (m_lanPagePtrMap[p_item->m_connectPath] != nullptr) {
qDebug() << "[LanPage] ShowLanDetailPage" << uuid << "already create,just raise";
KWindowSystem::activateWindow(m_lanPagePtrMap[p_item->m_connectPath]->winId());
KWindowSystem::raiseWindow(m_lanPagePtrMap[p_item->m_connectPath]->winId());
return;
}

View File

@ -1476,6 +1476,7 @@ void WlanPage::showHiddenWlanPage(QString devName)
if (m_joinHiddenWiFiPagePtrMap.contains(devName)) {
if (m_joinHiddenWiFiPagePtrMap[devName] != nullptr) {
qDebug() << "[WlanPage] showAddOtherWlanWidget" << devName << "already create,just raise";
KWindowSystem::activateWindow(m_joinHiddenWiFiPagePtrMap[devName]->winId());
KWindowSystem::raiseWindow(m_joinHiddenWiFiPagePtrMap[devName]->winId());
return;
}
@ -1506,6 +1507,7 @@ void WlanPage::showDetailPage(QString devName, QString ssid)
if (m_wlanPagePtrMap.contains(devName) && m_wlanPagePtrMap[devName].contains(ssid)) {
if (m_wlanPagePtrMap[devName][ssid] != nullptr) {
qDebug() << "[WlanPage] ShowWlanDetailPage" << ssid << "already create,just raise";
KWindowSystem::activateWindow(m_wlanPagePtrMap[devName][ssid]->winId());
KWindowSystem::raiseWindow(m_wlanPagePtrMap[devName][ssid]->winId());
return;
}