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
fd294394
Commit
fd294394
authored
Aug 08, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: only show "Open containing folder" for file items
parent
f210514c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+8
-2
No files found.
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
fd294394
...
...
@@ -911,6 +911,9 @@ bool PLModel::popup( const QModelIndex & index, const QPoint &point, const QMode
return
false
;
}
input_item_t
*
p_input
=
p_item
->
p_input
;
vlc_gc_incref
(
p_input
);
i_popup_item
=
index
.
isValid
()
?
p_item
->
i_id
:
-
1
;
i_popup_parent
=
index
.
isValid
()
?
(
p_item
->
p_parent
?
p_item
->
p_parent
->
i_id
:
-
1
)
:
...
...
@@ -932,8 +935,9 @@ bool PLModel::popup( const QModelIndex & index, const QPoint &point, const QMode
qtr
(
I_POP_STREAM
),
this
,
SLOT
(
popupStream
()
)
);
menu
.
addAction
(
qtr
(
I_POP_SAVE
),
this
,
SLOT
(
popupSave
()
)
);
menu
.
addAction
(
QIcon
(
":/menu/info"
),
qtr
(
I_POP_INFO
),
this
,
SLOT
(
popupInfo
()
)
);
menu
.
addAction
(
QIcon
(
":/type/folder-grey"
),
qtr
(
I_POP_EXPLORE
),
this
,
SLOT
(
popupExplore
()
)
);
if
(
!
strncasecmp
(
p_input
->
psz_uri
,
"file://"
,
7
)
)
menu
.
addAction
(
QIcon
(
":/type/folder-grey"
),
qtr
(
I_POP_EXPLORE
),
this
,
SLOT
(
popupExplore
()
)
);
menu
.
addSeparator
();
}
if
(
canEdit
()
)
...
...
@@ -980,6 +984,8 @@ bool PLModel::popup( const QModelIndex & index, const QPoint &point, const QMode
}
menu
.
addMenu
(
sortingMenu
);
}
vlc_gc_decref
(
p_input
);
if
(
!
menu
.
isEmpty
()
)
{
menu
.
exec
(
point
);
return
true
;
...
...
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