Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
e5ca8a9b
Commit
e5ca8a9b
authored
Feb 02, 2010
by
Jakob Leben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: kill a bug in playlist model
parent
376ecc67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+6
-2
No files found.
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
e5ca8a9b
...
...
@@ -609,6 +609,7 @@ void PLModel::processItemAppend( int i_item, int i_parent )
playlist_item_t
*
p_item
=
NULL
;
PLItem
*
newItem
=
NULL
;
input_thread_t
*
currentInputThread
;
int
pos
;
PLItem
*
nodeItem
=
findById
(
rootItem
,
i_parent
);
if
(
!
nodeItem
)
return
;
...
...
@@ -620,6 +621,9 @@ void PLModel::processItemAppend( int i_item, int i_parent )
p_item
=
playlist_ItemGetById
(
p_playlist
,
i_item
);
if
(
!
p_item
||
p_item
->
i_flags
&
PLAYLIST_DBL_FLAG
)
goto
end
;
for
(
pos
=
0
;
pos
<
p_item
->
p_parent
->
i_children
;
pos
++
)
if
(
p_item
->
p_parent
->
pp_children
[
pos
]
==
p_item
)
break
;
newItem
=
new
PLItem
(
p_item
,
nodeItem
);
PL_UNLOCK
;
...
...
@@ -628,8 +632,8 @@ void PLModel::processItemAppend( int i_item, int i_parent )
newItem
->
p_input
==
input_GetItem
(
currentInputThread
)
)
currentItem
=
newItem
;
beginInsertRows
(
index
(
nodeItem
,
0
),
nodeItem
->
childCount
(),
nodeItem
->
childCount
()
);
nodeItem
->
appendChild
(
newItem
);
beginInsertRows
(
index
(
nodeItem
,
0
),
pos
,
pos
);
nodeItem
->
insertChild
(
newItem
,
pos
);
endInsertRows
();
if
(
currentItem
==
newItem
)
...
...
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