Removed a superfluous (redundant) function I wrote for revision 172
parent
a430aff269
commit
aea620374c
|
@ -76,6 +76,5 @@
|
||||||
- (NSArray *)acceptablePlaylistTypes;
|
- (NSArray *)acceptablePlaylistTypes;
|
||||||
|
|
||||||
- (IBAction)showFileInFinder:(id)sender;
|
- (IBAction)showFileInFinder:(id)sender;
|
||||||
- (void)setSelectedRow:(int)row;
|
|
||||||
- (int)selectedRow;
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -699,21 +699,11 @@
|
||||||
- (IBAction)showFileInFinder:(id)sender
|
- (IBAction)showFileInFinder:(id)sender
|
||||||
{
|
{
|
||||||
NSWorkspace* ws = [NSWorkspace sharedWorkspace];
|
NSWorkspace* ws = [NSWorkspace sharedWorkspace];
|
||||||
if (selectedRow < 0)
|
if ([self selectionIndex] < 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
PlaylistEntry* curr = [self entryAtIndex:selectedRow];
|
PlaylistEntry* curr = [self entryAtIndex:[self selectionIndex]];
|
||||||
[ws selectFile:[curr filename] inFileViewerRootedAtPath:[curr filename]];
|
[ws selectFile:[curr filename] inFileViewerRootedAtPath:[curr filename]];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setSelectedRow:(int)row
|
|
||||||
{
|
|
||||||
selectedRow = row;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (int)selectedRow
|
|
||||||
{
|
|
||||||
return selectedRow;
|
|
||||||
}
|
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -74,8 +74,6 @@
|
||||||
if (!currentRowIsSelected)
|
if (!currentRowIsSelected)
|
||||||
[self selectRow:row byExtendingSelection:NO];
|
[self selectRow:row byExtendingSelection:NO];
|
||||||
|
|
||||||
[playlistController setSelectedRow:[self selectedRow]];
|
|
||||||
|
|
||||||
if ([self numberOfSelectedRows] <=0)
|
if ([self numberOfSelectedRows] <=0)
|
||||||
{
|
{
|
||||||
//No rows are selected, so the table should be displayed with all items disabled
|
//No rows are selected, so the table should be displayed with all items disabled
|
||||||
|
|
Loading…
Reference in New Issue