Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
42b38342
Commit
42b38342
authored
Jun 14, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/wxwindows/open.cpp: fixed a couple of bugs with the open dialog.
parent
c7ffbec6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
modules/gui/wxwindows/open.cpp
modules/gui/wxwindows/open.cpp
+10
-4
No files found.
modules/gui/wxwindows/open.cpp
View file @
42b38342
...
...
@@ -2,7 +2,7 @@
* open.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: open.cpp,v 1.2
6 2003/05/24 17:52:49
gbazin Exp $
* $Id: open.cpp,v 1.2
7 2003/06/14 21:18:36
gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -611,10 +611,13 @@ wxArrayString OpenDialog::SeparateEntries( wxString entries )
else
if
(
!
b_quotes_mode
&&
entry
.
Last
()
!=
wxT
(
'\"'
)
)
{
/* we found a non-quoted standalone string */
entry
.
RemoveLast
();
if
(
token
.
HasMoreTokens
()
||
entry
.
Last
()
==
wxT
(
' '
)
||
entry
.
Last
()
==
wxT
(
'\t'
)
||
entry
.
Last
()
==
wxT
(
'\r'
)
||
entry
.
Last
()
==
wxT
(
'\n'
)
)
entry
.
RemoveLast
();
if
(
!
entry
.
IsEmpty
()
)
entries_array
.
Add
(
entry
);
entry
.
Empty
();
}
}
else
{;}
}
...
...
@@ -629,8 +632,10 @@ wxArrayString OpenDialog::SeparateEntries( wxString entries )
*****************************************************************************/
void
OpenDialog
::
OnOk
(
wxCommandEvent
&
WXUNUSED
(
event
)
)
{
mrl_combo
->
Append
(
mrl_combo
->
GetValue
()
);
mrl
=
SeparateEntries
(
mrl_combo
->
GetValue
()
);
mrl_combo
->
Append
(
mrl_combo
->
GetValue
()
);
if
(
mrl_combo
->
GetCount
()
>
10
)
mrl_combo
->
Delete
(
0
);
mrl_combo
->
SetSelection
(
mrl_combo
->
GetCount
()
-
1
);
EndModal
(
wxID_OK
);
}
...
...
@@ -680,6 +685,7 @@ void OpenDialog::OnFileBrowse( wxCommandEvent& WXUNUSED(event) )
file_combo
->
SetValue
(
path
);
file_combo
->
Append
(
path
);
if
(
file_combo
->
GetCount
()
>
10
)
file_combo
->
Delete
(
0
);
UpdateMRL
(
FILE_ACCESS
);
}
}
...
...
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