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
9f7c2895
Commit
9f7c2895
authored
Jan 04, 2009
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Leave recent items filter empty.
parent
c31a8133
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.cpp
+1
-1
modules/gui/qt4/recents.cpp
modules/gui/qt4/recents.cpp
+6
-3
No files found.
modules/gui/qt4/qt4.cpp
View file @
9f7c2895
...
@@ -195,7 +195,7 @@ vlc_module_begin ()
...
@@ -195,7 +195,7 @@ vlc_module_begin ()
add_bool
(
"qt-recentplay"
,
true
,
NULL
,
RECENTPLAY_TEXT
,
add_bool
(
"qt-recentplay"
,
true
,
NULL
,
RECENTPLAY_TEXT
,
RECENTPLAY_TEXT
,
false
);
RECENTPLAY_TEXT
,
false
);
add_string
(
"qt-recentplay-filter"
,
"
xxx|porn
"
,
NULL
,
add_string
(
"qt-recentplay-filter"
,
""
,
NULL
,
RECENTPLAY_FILTER_TEXT
,
RECENTPLAY_FILTER_LONGTEXT
,
false
);
RECENTPLAY_FILTER_TEXT
,
RECENTPLAY_FILTER_LONGTEXT
,
false
);
add_bool
(
"qt-adv-options"
,
false
,
NULL
,
ADVANCED_OPTIONS_TEXT
,
add_bool
(
"qt-adv-options"
,
false
,
NULL
,
ADVANCED_OPTIONS_TEXT
,
...
...
modules/gui/qt4/recents.cpp
View file @
9f7c2895
...
@@ -46,7 +46,10 @@ RecentsMRL::RecentsMRL( intf_thread_t *_p_intf ) : p_intf( _p_intf )
...
@@ -46,7 +46,10 @@ RecentsMRL::RecentsMRL( intf_thread_t *_p_intf ) : p_intf( _p_intf )
isActive
=
config_GetInt
(
p_intf
,
"qt-recentplay"
);
isActive
=
config_GetInt
(
p_intf
,
"qt-recentplay"
);
char
*
psz_tmp
=
config_GetPsz
(
p_intf
,
"qt-recentplay-filter"
);
char
*
psz_tmp
=
config_GetPsz
(
p_intf
,
"qt-recentplay-filter"
);
if
(
psz_tmp
&&
*
psz_tmp
)
filter
=
new
QRegExp
(
psz_tmp
,
Qt
::
CaseInsensitive
);
filter
=
new
QRegExp
(
psz_tmp
,
Qt
::
CaseInsensitive
);
else
filter
=
NULL
;
free
(
psz_tmp
);
free
(
psz_tmp
);
load
();
load
();
...
@@ -61,7 +64,7 @@ RecentsMRL::~RecentsMRL()
...
@@ -61,7 +64,7 @@ RecentsMRL::~RecentsMRL()
void
RecentsMRL
::
addRecent
(
const
QString
&
mrl
)
void
RecentsMRL
::
addRecent
(
const
QString
&
mrl
)
{
{
if
(
!
isActive
||
filter
->
indexIn
(
mrl
)
>=
0
)
if
(
!
isActive
||
(
filter
&&
filter
->
indexIn
(
mrl
)
>=
0
)
)
return
;
return
;
msg_Dbg
(
p_intf
,
"Adding a new MRL to recent ones: %s"
,
qtu
(
mrl
)
);
msg_Dbg
(
p_intf
,
"Adding a new MRL to recent ones: %s"
,
qtu
(
mrl
)
);
...
@@ -101,7 +104,7 @@ void RecentsMRL::load()
...
@@ -101,7 +104,7 @@ void RecentsMRL::load()
for
(
int
i
=
0
;
i
<
list
.
size
();
++
i
)
for
(
int
i
=
0
;
i
<
list
.
size
();
++
i
)
{
{
if
(
filter
->
indexIn
(
list
.
at
(
i
)
)
==
-
1
)
if
(
!
filter
&&
filter
->
indexIn
(
list
.
at
(
i
)
)
==
-
1
)
stack
->
append
(
list
.
at
(
i
)
);
stack
->
append
(
list
.
at
(
i
)
);
}
}
}
}
...
...
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