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
28b5e483
Commit
28b5e483
authored
Oct 20, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Qt] RecentMRLs: Simplification and adding some debug.
parent
190e7875
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
modules/gui/qt4/recents.cpp
modules/gui/qt4/recents.cpp
+4
-9
No files found.
modules/gui/qt4/recents.cpp
View file @
28b5e483
...
...
@@ -50,7 +50,6 @@ RecentsMRL::RecentsMRL( intf_thread_t *_p_intf ) : p_intf( _p_intf )
RecentsMRL
::~
RecentsMRL
()
{
delete
stack
;
delete
signalMapper
;
}
void
RecentsMRL
::
addRecent
(
const
QString
&
mrl
)
...
...
@@ -58,6 +57,7 @@ void RecentsMRL::addRecent( const QString &mrl )
if
(
!
isActive
||
filter
->
indexIn
(
mrl
)
>=
0
)
return
;
msg_Dbg
(
p_intf
,
"Adding a new MRL to recent ones: %s"
,
qtu
(
mrl
)
);
if
(
stack
->
contains
(
mrl
)
)
{
stack
->
removeOne
(
mrl
);
...
...
@@ -89,11 +89,7 @@ QList<QString> RecentsMRL::recents()
void
RecentsMRL
::
load
()
{
QStringList
list
;
getSettings
()
->
beginGroup
(
"RecentsMRL"
);
list
=
getSettings
()
->
value
(
"list"
).
toStringList
();
getSettings
()
->
endGroup
();
QStringList
list
=
getSettings
()
->
value
(
"RecentsMRL/list"
).
toStringList
();
for
(
int
i
=
0
;
i
<
list
.
size
();
++
i
)
{
...
...
@@ -109,7 +105,6 @@ void RecentsMRL::save()
for
(
int
i
=
0
;
i
<
stack
->
size
();
++
i
)
list
<<
stack
->
at
(
i
);
getSettings
()
->
beginGroup
(
"RecentsMRL"
);
getSettings
()
->
setValue
(
"list"
,
list
);
getSettings
()
->
endGroup
();
getSettings
()
->
setValue
(
"RecentsMRL/list"
,
list
);
}
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