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]; [audioPlayer stop];
if([[NSUserDefaults standardUserDefaults] boolForKey:@"enableAudioScrobbler"]) { if([[NSUserDefaults standardUserDefaults] boolForKey:@"enableAudioScrobbler"]) {
[scrobbler stop]; [scrobbler stop];
} }
@ -147,11 +146,7 @@
if ([playlistView selectedRow] == -1) if ([playlistView selectedRow] == -1)
[playlistView selectRow:0 byExtendingSelection:NO]; [playlistView selectRow:0 byExtendingSelection:NO];
// IF added by safari (23:52 - 11Nov2008) if ([playlistView selectedRow] > -1)
// - 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)
[self playEntryAtIndex:[playlistView selectedRow]]; [self playEntryAtIndex:[playlistView selectedRow]];
} }