[vlc-devel] [PATCH] qt: fix playlist docked initial status is undefined

Pierre Lamot pierre at videolabs.io
Mon Jul 29 16:58:54 CEST 2019


  docked state was read from b_playlistDocked while
  b_plDocked was read from configuration.
---
 modules/gui/qt/main_interface.cpp | 2 +-
 modules/gui/qt/main_interface.hpp | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt/main_interface.cpp b/modules/gui/qt/main_interface.cpp
index 6b633dea55..19840eae80 100644
--- a/modules/gui/qt/main_interface.cpp
+++ b/modules/gui/qt/main_interface.cpp
@@ -551,7 +551,7 @@ void MainInterface::setVideoOnTop( bool on_top )
 
 void MainInterface::setPlaylistDocked( bool docked )
 {
-    b_playlistDocked = docked;
+    b_plDocked = docked;
 
     emit playlistDockedChanged(docked);
 }
diff --git a/modules/gui/qt/main_interface.hpp b/modules/gui/qt/main_interface.hpp
index d15a47405d..5562949778 100644
--- a/modules/gui/qt/main_interface.hpp
+++ b/modules/gui/qt/main_interface.hpp
@@ -113,7 +113,7 @@ public:
         RAISE_AUDIOVIDEO,
     };
     bool isInterfaceFullScreen() { return b_interfaceFullScreen; }
-    bool isPlaylistDocked() { return b_playlistDocked; }
+    bool isPlaylistDocked() { return b_plDocked; }
     bool isPlaylistVisible() { return playlistVisible; }
     bool isInterfaceAlwaysOnTop() { return b_interfaceOnTop; }
     bool hasEmbededVideo() { return m_hasEmbededVideo; }
@@ -175,7 +175,6 @@ protected:
     bool                 b_videoFullScreen;     ///< --fullscreen
     bool                 b_hideAfterCreation;
     bool                 b_minimalView;         ///< Minimal video
-    bool                 b_playlistDocked;
     bool                 b_interfaceFullScreen;
     bool                 b_interfaceOnTop;      ///keep UI on top
     bool                 b_pauseOnMinimize;
-- 
2.17.1



More information about the vlc-devel mailing list