diff --git a/src/frontend/list-items/wlanlistitem.cpp b/src/frontend/list-items/wlanlistitem.cpp index 89248b39..4b5ef274 100644 --- a/src/frontend/list-items/wlanlistitem.cpp +++ b/src/frontend/list-items/wlanlistitem.cpp @@ -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 { diff --git a/src/frontend/mainwindow.cpp b/src/frontend/mainwindow.cpp index 3b35906b..1f07f0f4 100644 --- a/src/frontend/mainwindow.cpp +++ b/src/frontend/mainwindow.cpp @@ -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; } diff --git a/src/frontend/tab-pages/lanpage.cpp b/src/frontend/tab-pages/lanpage.cpp index 4936ea9c..0fbacef9 100644 --- a/src/frontend/tab-pages/lanpage.cpp +++ b/src/frontend/tab-pages/lanpage.cpp @@ -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; } diff --git a/src/frontend/tab-pages/wlanpage.cpp b/src/frontend/tab-pages/wlanpage.cpp index 60f6c8f9..0b5f1efb 100644 --- a/src/frontend/tab-pages/wlanpage.cpp +++ b/src/frontend/tab-pages/wlanpage.cpp @@ -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; }