From a5e39bc64b1fb565ef56ce151da8748a3a23ddbf Mon Sep 17 00:00:00 2001 From: chenlelin Date: Thu, 24 Dec 2020 15:35:58 +0800 Subject: [PATCH] Remove waitforfinished() sentence for QProcess --- kylin-nm.pro | 2 +- src/ksimplenm.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kylin-nm.pro b/kylin-nm.pro index e75580bc..51fef8d3 100644 --- a/kylin-nm.pro +++ b/kylin-nm.pro @@ -4,7 +4,7 @@ # #------------------------------------------------- -QT += core gui x11extras dbus KWindowSystem svg +QT += core gui x11extras dbus KWindowSystem svg concurrent greaterThan(QT_MAJOR_VERSION, 4): QT += widgets diff --git a/src/ksimplenm.cpp b/src/ksimplenm.cpp index b76033ce..70bd547a 100644 --- a/src/ksimplenm.cpp +++ b/src/ksimplenm.cpp @@ -46,8 +46,8 @@ void KSimpleNM::execGetLanList() type = 0; runShellProcess->start("nmcli -f type,uuid,name connection show"); - runShellProcess->waitForStarted(-1); - runShellProcess->waitForFinished(-1); + //runShellProcess->waitForStarted(-1); + //runShellProcess->waitForFinished(-1); } //获取无线网络列表数据