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
5a2390a7
Commit
5a2390a7
authored
Mar 31, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: fix drive selection on Windows
And close #6536
parent
842d0af3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
modules/gui/qt4/components/open_panels.cpp
modules/gui/qt4/components/open_panels.cpp
+5
-2
No files found.
modules/gui/qt4/components/open_panels.cpp
View file @
5a2390a7
...
...
@@ -372,6 +372,7 @@ DiscOpenPanel::DiscOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
void
DiscOpenPanel
::
onFocus
()
{
ui
.
deviceCombo
->
clear
();
#ifdef WIN32
/* Disc drives probing for Windows */
wchar_t
szDrives
[
512
];
szDrives
[
0
]
=
'\0'
;
...
...
@@ -387,11 +388,13 @@ void DiscOpenPanel::onFocus()
GetVolumeInformationW
(
drive
,
psz_name
,
511
,
NULL
,
NULL
,
NULL
,
NULL
,
0
);
QString
displayName
=
FromWide
(
drive
);
if
(
!*
psz_name
)
{
displayName
=
displayName
+
" - "
+
FromWide
(
psz_name
);
char
*
psz_title
=
FromWide
(
psz_name
);
if
(
!
EMPTY_STR
(
psz_title
))
{
displayName
=
displayName
+
" - "
+
psz_title
;
}
ui
.
deviceCombo
->
addItem
(
displayName
,
FromWide
(
drive
)
);
free
(
psz_title
);
}
/* go to next drive */
...
...
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