Fix ext. tool loading.
This commit is contained in:
parent
2464df5c00
commit
855d4cc796
@ -519,7 +519,7 @@ void MessagesView::openSelectedMessagesWithExternalTool() {
|
||||
|
||||
if (!link.isEmpty()) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
@ -141,7 +141,7 @@ QList<ExternalTool> SettingsBrowserMail::externalTools() const {
|
||||
void SettingsBrowserMail::setExternalTools(const QList<ExternalTool>& list) {
|
||||
foreach (const ExternalTool& tool, list) {
|
||||
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));
|
||||
|
||||
m_ui->m_listTools->addTopLevelItem(item);
|
||||
|
Loading…
x
Reference in New Issue
Block a user