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
7cdb0761
Commit
7cdb0761
authored
Jun 23, 2010
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: reset current_index cache sametime as i_cache_id
parent
53849a6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+3
-0
No files found.
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
7cdb0761
...
...
@@ -700,6 +700,7 @@ void PLModel::rebuild( playlist_item_t *p_root )
/* Invalidate cache */
i_cached_id
=
i_cached_input_id
=
-
1
;
current_index
=
QModelIndex
();
if
(
rootItem
)
rootItem
->
removeChildren
();
...
...
@@ -752,6 +753,7 @@ void PLModel::removeItem( PLItem *item )
i_cached_id
=
-
1
;
i_cached_input_id
=
-
1
;
current_index
=
QModelIndex
();
if
(
item
->
parentItem
)
{
int
i
=
item
->
parentItem
->
children
.
indexOf
(
item
);
...
...
@@ -874,6 +876,7 @@ void PLModel::sort( int i_root_id, int column, Qt::SortOrder order )
}
i_cached_id
=
i_cached_input_id
=
-
1
;
current_index
=
QModelIndex
();
if
(
count
)
{
...
...
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