[vlc-devel] [PATCH 02/15] Enable multiple subtitle selection in QT GUI

Roland Bewick roland.bewick at gmail.com
Tue May 14 11:40:01 CEST 2019


---
 modules/gui/qt/util/input_models.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/gui/qt/util/input_models.cpp b/modules/gui/qt/util/input_models.cpp
index e381fbb917..34fefa3960 100644
--- a/modules/gui/qt/util/input_models.cpp
+++ b/modules/gui/qt/util/input_models.cpp
@@ -62,7 +62,13 @@ bool TrackListModel::setData(const QModelIndex &index, const QVariant &value, in
     vlc_player_locker lock{ m_player };
 
     if (select)
+    {
+        /* Only allow secondary subtitles to be manually selected
+        by the user through the GUI. */
+        vlc_player_SetSubtitleMultipleSelection(m_player, true);
         vlc_player_SelectTrack(m_player, m_data[row].m_id.get());
+        vlc_player_SetSubtitleMultipleSelection(m_player, false);
+    }
     else
         vlc_player_UnselectTrack(m_player, m_data[row].m_id.get());
     return true;
-- 
2.11.0



More information about the vlc-devel mailing list