From 3b147c3e696cc54514e82160ec34fc68be3ce26e Mon Sep 17 00:00:00 2001 From: zhangjiaping Date: Mon, 1 Mar 2021 14:30:05 +0800 Subject: [PATCH] fix(frontend): Main process crashed when open kylin-software-center to install applications. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Description: 修复点击应用安装时ukui-search主进程崩溃的问题 Log: 修复点击应用安装时ukui-search主进程崩溃的问题 --- src/control/search-detail-view.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/control/search-detail-view.cpp b/src/control/search-detail-view.cpp index c8e7912..81e23ae 100644 --- a/src/control/search-detail-view.cpp +++ b/src/control/search-detail-view.cpp @@ -587,7 +587,8 @@ bool SearchDetailView::installAppAction(const QString & name) { //打开软件商店下载此软件 QProcess process; - process.startDetached(QString("kylin-software-center -find %1").arg(name)); + bool res = process.startDetached(QString("kylin-software-center -find %1").arg(name)); + return res; } void SearchDetailView::paintEvent(QPaintEvent *event) {