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
de1d714f
Commit
de1d714f
authored
Mar 30, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: Better restore of the playlist State
parent
5174f448
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
14 deletions
+18
-14
modules/gui/qt4/components/playlist/standardpanel.cpp
modules/gui/qt4/components/playlist/standardpanel.cpp
+0
-1
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+18
-13
No files found.
modules/gui/qt4/components/playlist/standardpanel.cpp
View file @
de1d714f
...
...
@@ -325,7 +325,6 @@ void StandardPLPanel::createTreeView()
else
if
(
m
==
COLUMN_DURATION
)
treeView
->
header
()
->
resizeSection
(
c
,
80
);
}
}
getSettings
()
->
endGroup
();
/* Connections for the TreeView */
CONNECT
(
treeView
,
activated
(
const
QModelIndex
&
),
...
...
modules/gui/qt4/main_interface.cpp
View file @
de1d714f
...
...
@@ -254,8 +254,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
}
/* Playlist */
int
i_plVis
=
settings
->
value
(
"playlist-visible"
,
0
).
toInt
();
int
i_plVis
=
settings
->
value
(
"playlist-visible"
,
false
).
toBool
();
settings
->
endGroup
();
if
(
i_plVis
)
togglePlaylist
();
...
...
@@ -274,18 +273,9 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
MainInterface
::~
MainInterface
()
{
/* Unsure we hide the videoWidget before destroying it */
if
(
stackCentralOldWidget
==
playlist
Widget
)
if
(
stackCentralOldWidget
==
video
Widget
)
showBg
();
/* Save playlist state */
if
(
playlistWidget
)
{
if
(
!
isPlDocked
()
)
QVLCTools
::
saveWidgetPosition
(
p_intf
,
"Playlist"
,
playlistWidget
);
delete
playlistWidget
;
}
#ifdef WIN32
if
(
himl
)
ImageList_Destroy
(
himl
);
...
...
@@ -306,7 +296,22 @@ MainInterface::~MainInterface()
/* Save states */
settings
->
beginGroup
(
"MainWindow"
);
settings
->
setValue
(
"pl-dock-status"
,
b_plDocked
);
settings
->
setValue
(
"playlist-visible"
,
(
int
)
playlistVisible
);
/* Save playlist state */
if
(
playlistWidget
)
{
if
(
isPlDocked
()
)
{
QVLCTools
::
saveWidgetPosition
(
p_intf
,
"Playlist"
,
playlistWidget
);
settings
->
setValue
(
"playlist-visible"
,
playlistVisible
);
}
else
{
settings
->
setValue
(
"playlist-visible"
,
playlistWidget
->
isVisible
()
);
// FIXME
}
delete
playlistWidget
;
}
settings
->
setValue
(
"adv-controls"
,
getControlsVisibilityStatus
()
&
CONTROLS_ADVANCED
);
...
...
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