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
a26999c1
Commit
a26999c1
authored
Dec 08, 2015
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4: input_manager: Only add root items to recent items list
fixes #14399
parent
2cc39004
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+11
-4
No files found.
modules/gui/qt4/input_manager.cpp
View file @
a26999c1
...
...
@@ -128,10 +128,17 @@ void InputManager::setInput( input_thread_t *_p_input )
}
}
// Save the latest URI to avoid asking to restore the
// position on the same input file.
lastURI
=
qfu
(
uri
);
RecentsMRL
::
getInstance
(
p_intf
)
->
addRecent
(
lastURI
);
playlist_Lock
(
THEPL
);
// Add root items only
playlist_item_t
*
p_node
=
playlist_CurrentPlayingItem
(
THEPL
);
if
(
p_node
!=
NULL
&&
p_node
->
p_parent
==
NULL
)
{
// Save the latest URI to avoid asking to restore the
// position on the same input file.
lastURI
=
qfu
(
uri
);
RecentsMRL
::
getInstance
(
p_intf
)
->
addRecent
(
lastURI
);
}
playlist_Unlock
(
THEPL
);
free
(
uri
);
}
else
...
...
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