External browser testing...
This commit is contained in:
parent
b5fac71dd0
commit
3d90bcd347
@ -235,8 +235,9 @@ 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;
|
||||||
|
|
||||||
QDesktopServices::openUrl(QUrl(link));
|
QProcess::startDetached('\"' + browser + "\"");
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
#if defined(Q_OS_LINUX)
|
#if defined(Q_OS_LINUX)
|
||||||
if (!QProcess::startDetached(browser + ' ' + arguments.arg(link))) {
|
if (!QProcess::startDetached(browser + ' ' + arguments.arg(link))) {
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user