Skip to content

Commit

Permalink
liblinphoneTester: fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
bagage committed Jan 18, 2016
1 parent 83922f2 commit fb8ec27
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Classes/DialerView.m
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,9 @@ - (BOOL)displayDebugPopup:(NSString *)address {
(debugEnabled ? NSLocalizedString(@"Disable logs", nil) : NSLocalizedString(@"Enable logs", nil));
[alertView addButtonWithTitle:actionLog
block:^{
// enable / disable
BOOL enableDebug = !debugEnabled;
[Log enableLogs:enableDebug];
BOOL enabled = !debugEnabled;
[LinphoneManager.instance lpConfigSetBool:enabled forKey:@"debugenable_preference"];
[Log enableLogs:enabled];
}];

[alertView show];
Expand Down
1 change: 1 addition & 0 deletions Classes/SettingsView.m
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ - (void)appSettingChanged:(NSNotification *)notif {
[keys addObject:@"send_logs_button"];
[keys addObject:@"reset_logs_button"];
[Log enableLogs:debugEnabled];
[LinphoneManager.instance lpConfigSetBool:debugEnabled forKey:@"debugenable_preference"];
} else if ([@"account_mandatory_advanced_preference" compare:notif.object] == NSOrderedSame) {
removeFromHiddenKeys = [[notif.userInfo objectForKey:@"account_mandatory_advanced_preference"] boolValue];
for (NSString *key in settingsStore->dict) {
Expand Down
1 change: 0 additions & 1 deletion Classes/Utils/Log.m
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ + (void)log:(OrtpLogLevel)severity file:(const char *)file line:(int)line format
}

+ (void)enableLogs:(BOOL)enabled {
[LinphoneManager.instance lpConfigSetBool:enabled forKey:@"debugenable_preference"];
linphone_core_enable_logs_with_cb((OrtpLogFunc)linphone_iphone_log_handler);
if (enabled) {
NSLog(@"Enabling debug logs");
Expand Down

0 comments on commit fb8ec27

Please sign in to comment.