Fix ext. tool loading.
This commit is contained in:
parent
2464df5c00
commit
855d4cc796
2 changed files with 2 additions and 2 deletions
|
@ -519,7 +519,7 @@ void MessagesView::openSelectedMessagesWithExternalTool() {
|
||||||
|
|
||||||
if (!link.isEmpty()) {
|
if (!link.isEmpty()) {
|
||||||
if (!QProcess::startDetached(tool.executable(), QStringList() << tool.parameters() << link)) {
|
if (!QProcess::startDetached(tool.executable(), QStringList() << tool.parameters() << link)) {
|
||||||
qApp->showGuiMessage(tr("Cannot run external tool"), tr("External tool '%1' could not be started."),
|
qApp->showGuiMessage(tr("Cannot run external tool"), tr("External tool '%1' could not be started.").arg(tool.executable()),
|
||||||
QSystemTrayIcon::Critical);
|
QSystemTrayIcon::Critical);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -141,7 +141,7 @@ QList<ExternalTool> SettingsBrowserMail::externalTools() const {
|
||||||
void SettingsBrowserMail::setExternalTools(const QList<ExternalTool>& list) {
|
void SettingsBrowserMail::setExternalTools(const QList<ExternalTool>& list) {
|
||||||
foreach (const ExternalTool& tool, list) {
|
foreach (const ExternalTool& tool, list) {
|
||||||
QTreeWidgetItem* item = new QTreeWidgetItem(m_ui->m_listTools,
|
QTreeWidgetItem* item = new QTreeWidgetItem(m_ui->m_listTools,
|
||||||
QStringList() << tool.executable() << tool.parameters());
|
QStringList() << tool.executable() << tool.parameters().join(QL1C(' ')));
|
||||||
item->setData(0, Qt::UserRole, QVariant::fromValue(tool));
|
item->setData(0, Qt::UserRole, QVariant::fromValue(tool));
|
||||||
|
|
||||||
m_ui->m_listTools->addTopLevelItem(item);
|
m_ui->m_listTools->addTopLevelItem(item);
|
||||||
|
|
Loading…
Add table
Reference in a new issue