diff --git a/CMakeLists.txt b/CMakeLists.txt index 8fd265c82..0c57981a9 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,6 +53,10 @@ set(EXE_NAME ${APP_LOW_NAME}) option(USE_QT_5 "Use Qt 5 for building" OFF) option(BUNDLE_ICON_THEMES "Equip installation with custom icon themes" ON) +if(POLICY CMP0012) + cmake_policy(SET CMP0012 NEW) +endif() + if(${USE_QT_5}) cmake_minimum_required(VERSION 2.8.10) else(${USE_QT_5}) diff --git a/src/gui/messagesview.cpp b/src/gui/messagesview.cpp index 6b6492819..552610470 100644 --- a/src/gui/messagesview.cpp +++ b/src/gui/messagesview.cpp @@ -230,7 +230,11 @@ void MessagesView::openSelectedSourceArticlesExternally() { foreach (const QModelIndex &index, selectionModel()->selectedRows()) { QString link = m_sourceModel->messageAt(m_proxyModel->mapToSource(index).row()).m_url; +#if defined(Q_OS_LINUX) if (!QProcess::startDetached(browser + ' ' + arguments.arg(link))) { +#else + if (!QProcess::startDetached('\"' + browser + '\"' + ' ' + arguments.arg(link))) { +#endif QMessageBox::critical(this, tr("Problem with starting external web browser"), tr("External web browser could not be started."),