Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
e2031931
Commit
e2031931
authored
Jan 26, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Fix segfault from previous commit, and read from the config only once and simplify.
parent
ef26e8ea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
modules/gui/qt4/components/playlist/playlist_item.cpp
modules/gui/qt4/components/playlist/playlist_item.cpp
+10
-10
No files found.
modules/gui/qt4/components/playlist/playlist_item.cpp
View file @
e2031931
...
...
@@ -56,19 +56,25 @@ void PLItem::init( int _i_id, int _i_input_id, PLItem *parent, PLModel *m )
assert
(
model
);
/* We need a model */
/* No parent, should be the
main one
*/
/* No parent, should be the
2 main ones
*/
if
(
parentItem
==
NULL
)
{
i_showflags
=
model
->
shownFlags
();
if
(
model
->
i_depth
==
DEPTH_SEL
)
/* Selector Panel */
{
item_col_strings
.
append
(
""
);
}
else
{
i_showflags
=
config_GetInt
(
model
->
p_intf
,
"qt-pl-showflags"
);
updateColumnHeaders
();
}
}
else
{
i_showflags
=
parentItem
->
i_showflags
;
//Add empty string and update() handles data appending
item_col_strings
.
append
(
""
);
}
msg_Dbg
(
model
->
p_intf
,
"PLItem created of type: %i"
,
model
->
i_depth
);
}
/*
...
...
@@ -97,12 +103,6 @@ void PLItem::updateColumnHeaders()
{
item_col_strings
.
clear
();
if
(
model
->
i_depth
==
DEPTH_SEL
)
/* Selector Panel */
{
item_col_strings
.
append
(
""
);
return
;
}
for
(
int
i_index
=
1
;
i_index
<=
VLC_META_ENGINE_ART_URL
;
i_index
*=
2
)
{
if
(
i_showflags
&
i_index
)
...
...
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