Hopefully fixed problem with external browsers.

This commit is contained in:
Martin Rotter 2014-02-13 19:55:09 +01:00
parent 1cf548bfb3
commit 4e7c5bd01a

View file

@ -231,7 +231,8 @@ void MessagesView::openSelectedSourceArticlesExternally() {
foreach (const QModelIndex &index, selectionModel()->selectedRows()) { foreach (const QModelIndex &index, selectionModel()->selectedRows()) {
QString link = m_sourceModel->messageAt(m_proxyModel->mapToSource(index).row()).m_url; QString link = m_sourceModel->messageAt(m_proxyModel->mapToSource(index).row()).m_url;
if (!QProcess::startDetached('\"' + browser + "\" \"" + arguments.arg(link) + "\"")) { if (!QProcess::startDetached(browser,
QStringList() << arguments.arg(link))) {
MessageBox::show(this, MessageBox::show(this,
QMessageBox::Critical, QMessageBox::Critical,
tr("Problem with starting external web browser"), tr("Problem with starting external web browser"),