[vlc-devel] [PATCH 3/4] qt: Save "fullscreen-monitor" setting

Gabriel Luci github at luci.ca
Sun Oct 13 05:58:30 CEST 2019


This borrows the existing "Fullscreen Video Device" setting, but saves
the device name to the "fullscreen-monitor" setting.
---
 modules/gui/qt/components/simple_preferences.cpp | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/modules/gui/qt/components/simple_preferences.cpp b/modules/gui/qt/components/simple_preferences.cpp
index f80c48cc1b..b94e398196 100644
--- a/modules/gui/qt/components/simple_preferences.cpp
+++ b/modules/gui/qt/components/simple_preferences.cpp
@@ -1095,6 +1095,13 @@ void SPrefsPanel::apply()
     {
         int i_fullscreenScreen =  qobject_cast<QComboBox *>(optionWidgets["fullscreenScreenB"])->currentData().toInt();
         config_PutInt( "qt-fullscreen-screennumber", i_fullscreenScreen );
+        if (i_fullscreenScreen >= 0)
+        {
+            QByteArray s_fullscreenScreen = qobject_cast<QComboBox *>(optionWidgets["fullscreenScreenB"])->currentText().toUtf8();
+            config_PutPsz( "fullscreen-monitor", s_fullscreenScreen);
+        } else {
+            config_PutPsz( "fullscreen-monitor", "");
+        }
         break;
     }
 
-- 
2.11.0



More information about the vlc-devel mailing list