External browser testing...

This commit is contained in:
Martin Rotter 2014-01-20 19:20:31 +01:00
parent 15b2bfefbc
commit b5fac71dd0

View File

@ -11,6 +11,7 @@
#include <QMenu>
#include <QMessageBox>
#include <QProcess>
#include <QDesktopServices>
MessagesView::MessagesView(QWidget *parent)
@ -234,6 +235,8 @@ void MessagesView::openSelectedSourceArticlesExternally() {
foreach (const QModelIndex &index, selectionModel()->selectedRows()) {
QString link = m_sourceModel->messageAt(m_proxyModel->mapToSource(index).row()).m_url;
QDesktopServices::openUrl(QUrl(link));
continue;
#if defined(Q_OS_LINUX)
if (!QProcess::startDetached(browser + ' ' + arguments.arg(link))) {
#else