fixed a bug introduced before, double clicking on a song in the tableview wouldnt work

CQTexperiment
lmsilva 2008-11-21 15:43:34 +00:00
parent dda74d0608
commit 0df5123d05
1 changed files with 2 additions and 7 deletions

View File

@ -108,7 +108,6 @@
{
[audioPlayer stop];
if([[NSUserDefaults standardUserDefaults] boolForKey:@"enableAudioScrobbler"]) {
[scrobbler stop];
}
@ -146,12 +145,8 @@
{
if ([playlistView selectedRow] == -1)
[playlistView selectRow:0 byExtendingSelection:NO];
// IF added by safari (23:52 - 11Nov2008)
// - to fix the trackingslider getting enabled, when play is
// pressed and there is nothing on the playlist
// - check if selectedRow is empty, before playing.
if ([playlistView selectedRow] == 0)
if ([playlistView selectedRow] > -1)
[self playEntryAtIndex:[playlistView selectedRow]];
}