• R/O
  • SSH
  • HTTPS

alchemusica: 提交


Commit MetaInfo

修订版197 (tree)
时间2020-07-26 19:33:50
作者toshinagata1964

Log Message

Selecting Audio Device as an input caused crash. Fixed.

更改概述

差异

--- trunk/Classes/AudioSettingsPanelController.m (revision 196)
+++ trunk/Classes/AudioSettingsPanelController.m (revision 197)
@@ -485,12 +485,11 @@
485485 [view setEnabled: YES];
486486 if (isInput) {
487487 view = [self viewWithTag: kCustomViewButtonBase + tagOffset];
488- if (n >= kMDAudioMusicDeviceIndexOffset && (mp = MDAudioMusicDeviceInfoAtIndex(n - kMDAudioMusicDeviceIndexOffset)) != NULL && mp->hasCustomView) {
488+ if (n >= kMDAudioMusicDeviceIndexOffset &&
489+ (mp = MDAudioMusicDeviceInfoAtIndex(n - kMDAudioMusicDeviceIndexOffset)) != NULL &&
490+ (mp->hasCustomView || [AudioSettingsPrefPanelController shouldCallApplicationForDeviceName:mp->name] != nil)) {
489491 [view setEnabled: YES];
490492 [view setState: NSOnState];
491- } else if ([AudioSettingsPrefPanelController shouldCallApplicationForDeviceName:mp->name] != nil) {
492- [view setEnabled: YES];
493- [view setState: NSOnState];
494493 } else {
495494 [view setEnabled: NO];
496495 [view setState: NSOffState];
Show on old repository browser