Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
ad87b924
Commit
ad87b924
authored
Sep 21, 2008
by
Ilkka Ollakka
Browse files
use items showflags, parentItem can be NULL
parent
6f00c8d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/gui/qt4/components/playlist/playlist_item.cpp
View file @
ad87b924
...
...
@@ -185,10 +185,10 @@ void PLItem::update( playlist_item_t *p_item, bool iscurrent )
return
;
}
assert
(
parentItem
->
i_showflags
<
COLUMN_END
);
assert
(
i_showflags
<
COLUMN_END
);
/* Meta: ID */
if
(
parentItem
->
i_showflags
&
COLUMN_NUMBER
)
if
(
i_showflags
&
COLUMN_NUMBER
)
{
QModelIndex
idx
=
model
->
index
(
this
,
0
);
item_col_strings
.
append
(
QString
::
number
(
idx
.
row
()
+
1
)
);
...
...
@@ -196,7 +196,7 @@ void PLItem::update( playlist_item_t *p_item, bool iscurrent )
/* Other meta informations */
for
(
uint32_t
i_index
=
2
;
i_index
<
COLUMN_END
;
i_index
<<=
1
)
{
if
(
parentItem
->
i_showflags
&
i_index
)
if
(
i_showflags
&
i_index
)
{
char
*
psz
=
psz_column_meta
(
p_item
->
p_input
,
i_index
);
item_col_strings
.
append
(
qfu
(
psz
)
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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