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
179b740c
Commit
179b740c
authored
Aug 21, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Open a file location. Very dumb and incomplete.
Close #1459
parent
e22901db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+18
-6
No files found.
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
179b740c
...
...
@@ -812,10 +812,8 @@ void PLModel::popup( QModelIndex & index, QPoint &point, QModelIndexList list )
menu
->
addAction
(
qfu
(
I_POP_SORT
),
this
,
SLOT
(
popupSort
()
)
);
menu
->
addAction
(
qfu
(
I_POP_ADD
),
this
,
SLOT
(
popupAdd
()
)
);
}
#ifdef WIN32
menu
->
addSeparator
();
menu
->
addAction
(
qfu
(
I_POP_EXPLORE
),
this
,
SLOT
(
popupExplore
()
)
);
#endif
menu
->
popup
(
point
);
}
else
...
...
@@ -898,12 +896,26 @@ void PLModel::popupSave()
msg_Err
(
p_playlist
,
"Save not implemented"
);
}
#include <QUrl>
#include <QFileInfo>
#include <QDesktopServices>
void
PLModel
::
popupExplore
()
{
#ifdef WIN32
#include <shellapi.h>
ShellExecute
(
NULL
,
"explore"
,
"C:
\\
"
,
NULL
,
NULL
,
SW_SHOWNORMAL
);
#endif
playlist_item_t
*
p_item
=
playlist_ItemGetById
(
p_playlist
,
i_popup_item
,
pl_Unlocked
);
if
(
p_item
)
{
input_item_t
*
p_input
=
p_item
->
p_input
;
char
*
psz_meta
=
input_item_GetURI
(
p_input
);
if
(
psz_meta
)
{
/* FIXME add a MRLSplit like function */
QFileInfo
info
(
qfu
(
psz_meta
)
);
QDesktopServices
::
openUrl
(
QUrl
::
fromLocalFile
(
info
.
absolutePath
()
)
);
free
(
psz_meta
);
}
}
}
/**********************************************************************
...
...
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