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
2dc5dff3
Commit
2dc5dff3
authored
Aug 20, 2009
by
Jakob Leben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4 playlist: fix crash at "vlc --no-media-library"
It's ugly, but it will do.
parent
74d8fc71
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+11
-8
No files found.
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
2dc5dff3
...
@@ -132,18 +132,21 @@ Qt::ItemFlags PLModel::flags( const QModelIndex &index ) const
...
@@ -132,18 +132,21 @@ Qt::ItemFlags PLModel::flags( const QModelIndex &index ) const
PLItem
*
item
=
index
.
isValid
()
?
getItem
(
index
)
:
rootItem
;
PLItem
*
item
=
index
.
isValid
()
?
getItem
(
index
)
:
rootItem
;
input_item_t
*
pl_input
=
p_playlist
->
p_local_category
->
p_input
;
input_item_t
*
pl_input
=
input_item_t
*
ml_input
=
p_playlist
->
p_ml_category
->
p_input
;
p_playlist
->
p_local_category
?
p_playlist
->
p_local_category
->
p_input
:
NULL
;
input_item_t
*
ml_input
=
p_playlist
->
p_ml_category
?
p_playlist
->
p_ml_category
->
p_input
:
NULL
;
if
(
rootItem
->
i_id
==
p_playlist
->
p_root_onelevel
->
i_id
if
(
i_depth
==
DEPTH_SEL
)
||
rootItem
->
i_id
==
p_playlist
->
p_root_category
->
i_id
)
{
{
if
(
item
->
p_input
==
pl_input
if
(
(
pl_input
&&
item
->
p_input
==
pl_input
)
||
||
item
->
p_input
==
ml_input
)
(
ml_input
&&
item
->
p_input
==
ml_input
)
)
flags
|=
Qt
::
ItemIsDropEnabled
;
flags
|=
Qt
::
ItemIsDropEnabled
;
}
}
else
if
(
rootItem
->
p_input
==
pl_input
||
else
if
(
(
pl_input
&&
rootItem
->
p_input
==
pl_input
)
||
rootItem
->
p_input
==
ml_input
)
(
ml_input
&&
rootItem
->
p_input
==
ml_input
)
)
{
{
PL_LOCK
;
PL_LOCK
;
playlist_item_t
*
plItem
=
playlist_item_t
*
plItem
=
...
...
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