git.ithinksw.org
/
MenuTunes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Guys, what's a relative path?
[MenuTunes.git]
/
MainController.m
diff --git
a/MainController.m
b/MainController.m
index
05ef785
..
0f86024
100755
(executable)
--- a/
MainController.m
+++ b/
MainController.m
@@
-444,8
+444,8
@@
static MainController *sharedController;
{
ITDebugLog(@"Selecting playlist %i", index);
NS_DURING
{
ITDebugLog(@"Selecting playlist %i", index);
NS_DURING
-
//
[[self currentRemote] switchToPlaylistAtIndex:(index % 1000) ofSourceAtIndex:(index / 1000)];
- [[self currentRemote] switchToPlaylistAtIndex:index];
+ [[self currentRemote] switchToPlaylistAtIndex:(index % 1000) ofSourceAtIndex:(index / 1000)];
+
//
[[self currentRemote] switchToPlaylistAtIndex:index];
NS_HANDLER
[self networkError:localException];
NS_ENDHANDLER
NS_HANDLER
[self networkError:localException];
NS_ENDHANDLER
@@
-498,7
+498,12
@@
static MainController *sharedController;
} else {
ITDebugLog(@"Launching player.");
NS_DURING
} else {
ITDebugLog(@"Launching player.");
NS_DURING
- if (![[NSWorkspace sharedWorkspace] launchApplication:[[self currentRemote] playerFullName]]) {
+ NSString *path;
+ if ( (path = [df stringForKey:@"CustomPlayerPath"]) ) {
+ } else {
+ path = [[self currentRemote] playerFullName];
+ }
+ if (![[NSWorkspace sharedWorkspace] launchApplication:path]) {
ITDebugLog(@"Error Launching Player");
}
NS_HANDLER
ITDebugLog(@"Error Launching Player");
}
NS_HANDLER