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 15:13:38 +00:00
parent 2147be51bc
commit 8e951c3346

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)
{