fix(file-search):无默认打开应用的文件双击无弹窗.
This commit is contained in:
parent
16d3f0a323
commit
a4170b98be
|
@ -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, [ & ](){
|
||||
|
|
Loading…
Reference in New Issue