Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
50ad59bb
Commit
50ad59bb
authored
Aug 18, 2009
by
Ilkka Ollakka
Browse files
qt4: little tweaking on PLModel::flags on playlist-locking
parent
ed7b4fcd
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
50ad59bb
...
...
@@ -156,16 +156,18 @@ Qt::ItemFlags PLModel::flags( const QModelIndex &index ) const
||
item
->
p_input
==
ml_input
)
flags
|=
Qt
::
ItemIsDropEnabled
;
}
else
else
if
(
rootItem
->
p_input
==
pl_input
||
rootItem
->
p_input
==
ml_input
)
{
PL_LOCK
;
playlist_item_t
*
plItem
=
playlist_ItemGetById
(
p_playlist
,
item
->
i_id
);
if
(
plItem
&&
(
plItem
->
i_children
>
-
1
)
&&
(
rootItem
->
p_input
==
pl_input
||
rootItem
->
p_input
==
ml_input
)
)
flags
|=
Qt
::
ItemIsDropEnabled
;
if
(
plItem
&&
(
plItem
->
i_children
>
-
1
)
)
flags
|=
Qt
::
ItemIsDropEnabled
;
PL_UNLOCK
;
flags
|=
Qt
::
ItemIsDragEnabled
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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