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
8e315515
Commit
8e315515
authored
Dec 23, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hopefully correct tokenization of open strings
parent
aeb39123
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
modules/gui/qt4/components/open.cpp
modules/gui/qt4/components/open.cpp
+1
-6
modules/gui/qt4/dialogs/open.cpp
modules/gui/qt4/dialogs/open.cpp
+5
-1
No files found.
modules/gui/qt4/components/open.cpp
View file @
8e315515
...
...
@@ -59,13 +59,8 @@ void FileOpenPanel::browseFile()
QString
fileString
=
""
;
QStringList
files
=
browse
(
qtr
(
"Open File"
)
);
foreach
(
QString
file
,
files
)
{
if
(
file
.
contains
(
" "
)
)
{
fileString
+=
"
\"
"
+
file
+
"
\"
"
;
}
else
{
fileString
+=
file
;
}
fileString
+=
"
\"
"
+
file
+
"
\"
"
;
}
ui
.
fileInput
->
setEditText
(
fileString
);
ui
.
fileInput
->
addItem
(
fileString
);
if
(
ui
.
fileInput
->
count
()
>
8
)
ui
.
fileInput
->
removeItem
(
0
);
...
...
modules/gui/qt4/dialogs/open.cpp
View file @
8e315515
...
...
@@ -23,6 +23,7 @@
#include <QTabWidget>
#include <QGridLayout>
#include <QFileDialog>
#include <QRegExp>
#include "dialogs/open.hpp"
#include "components/open.hpp"
...
...
@@ -107,11 +108,14 @@ void OpenDialog::ok()
{
this
->
toggleVisible
();
mrl
=
ui
.
advancedLineInput
->
text
();
QStringList
tempMRL
=
mrl
.
split
(
" "
);
QStringList
tempMRL
=
mrl
.
split
(
QRegExp
(
"
\"\\
s+
\"
"
),
QString
::
SkipEmptyParts
);
if
(
!
isModal
()
)
{
for
(
size_t
i
=
0
;
i
<
tempMRL
.
size
();
i
++
)
{
QString
mrli
=
tempMRL
[
i
].
remove
(
QRegExp
(
"^
\"
"
)
).
remove
(
QRegExp
(
"
\"\\
s+$"
)
);
const
char
*
psz_utf8
=
qtu
(
tempMRL
[
i
]
);
/* Play the first one, parse and enqueue the other ones */
playlist_Add
(
THEPL
,
psz_utf8
,
NULL
,
...
...
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