From 7d36be89d939a7fb202e494610329f770431f9e7 Mon Sep 17 00:00:00 2001 From: JunjieBai Date: Fri, 23 Feb 2024 17:23:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(file-search):=E6=97=A0=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E6=89=93=E5=BC=80=E5=BA=94=E7=94=A8=E7=9A=84=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=8F=8C=E5=87=BB=E6=97=A0=E5=BC=B9=E7=AA=97.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libsearch/index/file-search-plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsearch/index/file-search-plugin.cpp b/libsearch/index/file-search-plugin.cpp index 417770c..5ebb5ee 100644 --- a/libsearch/index/file-search-plugin.cpp +++ b/libsearch/index/file-search-plugin.cpp @@ -154,7 +154,7 @@ void FileSearchPlugin::openAction(int actionkey, QString key, int type) msgBox.addButton(tr("OK"), QMessageBox::YesRole); msgBox.setIcon(QMessageBox::Information); msgBox.setText(tr("Can not get a default application for opening %1.").arg(key)); - msgBox.open(); + msgBox.exec(); } break; case 1: @@ -273,7 +273,7 @@ void FileSearchPlugin::initDetailPage() msgBox.addButton(tr("OK"), QMessageBox::YesRole); msgBox.setIcon(QMessageBox::Information); msgBox.setText(tr("Can not get a default application for opening %1.").arg(m_currentActionKey)); - msgBox.open(); + msgBox.exec(); } }); connect(m_actionLabel2, &ActionLabel::actionTriggered, [ & ](){