fix(file-search):无默认打开应用的文件双击无弹窗.

This commit is contained in:
JunjieBai 2024-02-23 17:23:04 +08:00
parent 16d3f0a323
commit a4170b98be
1 changed files with 2 additions and 2 deletions

View File

@ -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, [ & ](){