Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
0c3fb79a
Commit
0c3fb79a
authored
Nov 03, 2009
by
Jakob Leben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: fix faulty playlist show / hide logic
Fixes #2899, at least on Linux. Can somebody test on Windows, please?
parent
22da0747
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
7 deletions
+18
-7
modules/gui/qt4/components/playlist/playlist.cpp
modules/gui/qt4/components/playlist/playlist.cpp
+3
-4
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+15
-3
No files found.
modules/gui/qt4/components/playlist/playlist.cpp
View file @
0c3fb79a
...
...
@@ -132,12 +132,11 @@ void PlaylistWidget::closeEvent( QCloseEvent *event )
if
(
THEDP
->
isDying
()
)
{
/* FIXME is it needed ? */
close
();
event
->
accept
();
}
else
{
if
(
p_intf
->
p_sys
->
p_mi
)
p_intf
->
p_sys
->
p_mi
->
togglePlaylist
();
hide
();
event
->
ignore
();
}
event
->
accept
();
}
modules/gui/qt4/main_interface.cpp
View file @
0c3fb79a
...
...
@@ -964,7 +964,19 @@ void MainInterface::togglePlaylist()
else
{
/* toggle the visibility of the playlist */
TOGGLEV
(
playlistWidget
);
//TOGGLEV( playlistWidget );
if
(
playlistWidget
->
isVisible
()
&&
!
playlistWidget
->
isMinimized
()
)
{
playlistWidget
->
hide
();
}
else
{
playlistWidget
->
setWindowState
(
playlistWidget
->
windowState
()
&
~
Qt
::
WindowMinimized
|
Qt
::
WindowActive
);
playlistWidget
->
show
();
}
playlistVisible
=
!
playlistVisible
;
//doComponentsUpdate(); //resize( sizeHint() );
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment