Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
000405ed
Commit
000405ed
authored
Apr 16, 2005
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wx/playlist.cpp: invalidate the FindItem cache when needed (should fix some random crashes)
parent
f258f621
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
modules/gui/wxwindows/playlist.cpp
modules/gui/wxwindows/playlist.cpp
+4
-1
No files found.
modules/gui/wxwindows/playlist.cpp
View file @
000405ed
...
...
@@ -374,7 +374,7 @@ Playlist::Playlist( intf_thread_t *_p_intf, wxWindow *p_parent ):
SetDropTarget
(
new
DragAndDrop
(
p_intf
,
VLC_TRUE
)
);
#endif
i_saved_id
=
0
;
i_saved_id
=
-
1
;
/* We want to be noticed of playlist changes */
...
...
@@ -610,6 +610,7 @@ void Playlist::UpdateItem( int i )
void
Playlist
::
RemoveItem
(
int
i
)
{
if
(
i
<=
0
)
return
;
/* Sanity check */
if
(
i
==
i_saved_id
)
i_saved_id
=
-
1
;
wxTreeItemId
item
=
FindItem
(
treectrl
->
GetRootItem
(),
i
);
...
...
@@ -768,6 +769,7 @@ void Playlist::Rebuild( vlc_bool_t b_root )
/* ...and rebuild it */
LockPlaylist
(
p_intf
->
p_sys
,
p_playlist
);
}
i_saved_id
=
-
1
;
p_view
=
playlist_ViewFind
(
p_playlist
,
i_current_view
);
/* FIXME */
...
...
@@ -1383,6 +1385,7 @@ void Playlist::OnPopupSort( wxCommandEvent& event )
SORT_TITLE_NODES_FIRST
,
ORDER_NORMAL
);
treectrl
->
DeleteChildren
(
i_wx_popup_item
);
i_saved_id
=
-
1
;
UpdateNodeChildren
(
p_item
,
i_wx_popup_item
);
}
...
...
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