Fixing project references and dependencies that Kent accidentally removed
[MenuTunes.git] / MainController.m
index 7a8c874..4994a7d 100755 (executable)
@@ -199,7 +199,9 @@ static MainController *sharedController;
     [statusItem setAlternateImage:[NSImage imageNamed:@"MenuInverted"]];
 
        if ([df boolForKey:@"audioscrobblerEnabled"]) {
     [statusItem setAlternateImage:[NSImage imageNamed:@"MenuInverted"]];
 
        if ([df boolForKey:@"audioscrobblerEnabled"]) {
-               [[AudioscrobblerController sharedController] attemptHandshake:NO];
+               if ([PreferencesController getKeychainItemPasswordForUser:[df stringForKey:@"audioscrobblerUser"]] != nil) {
+                       [[AudioscrobblerController sharedController] attemptHandshake:NO];
+               }
        }
 
     [networkController startRemoteServerSearch];
        }
 
     [networkController startRemoteServerSearch];