Skip to content

Commit

Permalink
fix some build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
martinrotter committed Dec 7, 2023
1 parent 64b739e commit a3b8b2c
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ if(NOT OS2)
list(APPEND QT_COMPONENTS Multimedia)
endif()

if(ENABLE_MEDIAPLAYER_QTMULTIMEDIA AND ENABLE_MEDIAPLAYER_LIBMPV)
message(FATAL_ERROR "You can only enable 1 media player backend.")
endif()

if(ENABLE_MEDIAPLAYER_QTMULTIMEDIA)
message(STATUS "Enabling QtMultimedia media player backend.")

Expand Down
6 changes: 6 additions & 0 deletions resources/text/CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
4.6.1
-----

Fixed:
* Fixed some compilation problems and related issues.

4.6.0
-----

Expand Down
6 changes: 5 additions & 1 deletion src/librssguard/gui/dialogs/formmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -868,10 +868,14 @@ void FormMain::createConnections() {
&QAction::triggered,
tabWidget()->feedMessageViewer()->messagesView(),
&MessagesView::openSelectedSourceMessagesExternally);
connect(m_ui->m_actionOpenSelectedSourceArticlesExternally,

#if defined(ENABLE_MEDIAPLAYER)
connect(m_ui->m_actionPlaySelectedArticlesInMediaPlayer,
&QAction::triggered,
tabWidget()->feedMessageViewer()->messagesView(),
&MessagesView::playSelectedArticleInMediaPlayer);
#endif

connect(m_ui->m_actionOpenSelectedMessagesInternally,
&QAction::triggered,
tabWidget()->feedMessageViewer()->messagesView(),
Expand Down
3 changes: 3 additions & 0 deletions src/librssguard/gui/tabwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,12 @@ void TabWidget::createConnections() {
&MessagesView::openSingleMessageInNewTab,
this,
&TabWidget::addSingleMessageView);

#if defined(ENABLE_MEDIAPLAYER)
connect(feedMessageViewer()->messagesView(), &MessagesView::playLinkInMediaPlayer, this, [this](const QString& url) {
addMediaPlayer(url, true);
});
#endif
}

void TabWidget::initializeTabs() {
Expand Down

0 comments on commit a3b8b2c

Please sign in to comment.