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
1a8b0cfe
Commit
1a8b0cfe
authored
Dec 05, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Input item type cannot be negative (fix warning)
parent
469f358d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+2
-3
No files found.
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
1a8b0cfe
...
@@ -336,8 +336,7 @@ QVariant PLModel::data( const QModelIndex &index, int role ) const
...
@@ -336,8 +336,7 @@ QVariant PLModel::data( const QModelIndex &index, int role ) const
}
}
else
if
(
role
==
Qt
::
DecorationRole
&&
index
.
column
()
==
0
)
else
if
(
role
==
Qt
::
DecorationRole
&&
index
.
column
()
==
0
)
{
{
/* Use to segfault here because i_type wasn't always initialized */
/* Used to segfault here because i_type wasn't always initialized */
if
(
item
->
p_input
->
i_type
>=
0
)
return
QVariant
(
PLModel
::
icons
[
item
->
p_input
->
i_type
]
);
return
QVariant
(
PLModel
::
icons
[
item
->
p_input
->
i_type
]
);
}
}
else
if
(
role
==
Qt
::
FontRole
)
else
if
(
role
==
Qt
::
FontRole
)
...
...
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