Changeset bbc02c3f6afaf65660315ec17a322339bf333102

Show
Ignore:
Timestamp:
02/16/08 01:52:43 (7 months ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1203123163 +0000
git-parent:

[70c4d3260034daa234ee9f9e8e9ce89cf217f043]

git-author:
Pierre d'Herbemont <pdherbemont@videolan.org> 1203123163 +0000
Message:

macosx/vlc_app/VLCMediaListLayer: Correctly go to the right layer.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • projects/macosx/vlc_app/Sources/VLCMediaListLayer.m

    re6e14e4 rbbc02c3  
    216216        if( selectedIndex - index < 5  ) 
    217217        { 
    218             [self changeSelectedLayerToPreviousIndex]; 
     218            while( index < selectedIndex  ) 
     219                [self changeSelectedLayerToPreviousIndex]; 
    219220            return; 
    220221        } 
     
    228229        if( index - selectedIndex < 5  ) 
    229230        { 
    230             [self changeSelectedLayerToNextIndex]; 
     231            while( index > selectedIndex  ) 
     232                [self changeSelectedLayerToNextIndex]; 
    231233            return; 
    232234        }