Fix expose view always shows the first picture of the list without respect to the selected one

This commit is contained in:
Hadi Nategh 2015-01-23 09:25:18 +00:00
parent 21bf883be4
commit 75097c9cc2

View File

@ -392,7 +392,7 @@ function expose (widget)
// But before it goes, we'll pull everything we can
read_from_nextmatch.call(this, nm, mediaContent);
// find current_entry in array and set it's array-index
for(var i; i < mediaContent.length; i++)
for(var i=0; i < mediaContent.length; i++)
{
if ('filemanager::'+mediaContent[i].path == current_entry.uid)
{