diff options
author | ritsuka <[email protected]> | 2014-12-30 07:13:07 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2014-12-30 07:13:07 +0000 |
commit | e85690352f677b49355633570ae1b34bb953f411 (patch) | |
tree | a5422a1bfa4af11f903cd69ea4d62765ce9f844e /macosx/HBVideo.m | |
parent | 30d1c1cc1e7db5336ba614947dfecb54b453917d (diff) |
MacGui: fix a bunch of regressions (various crash when in some textfields, encode log going to the wrong directory).
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6676 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBVideo.m')
-rw-r--r-- | macosx/HBVideo.m | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/macosx/HBVideo.m b/macosx/HBVideo.m index 119b9f421..9fe897b16 100644 --- a/macosx/HBVideo.m +++ b/macosx/HBVideo.m @@ -272,6 +272,11 @@ NSString * const HBVideoChangedNotification = @"HBVideoChangedNotification"; return retval; } +- (void)setNilValueForKey:(NSString *)key +{ + [self setValue:@0 forKey:key]; +} + #pragma mark - - (NSArray *)presets @@ -371,6 +376,8 @@ NSString * const HBVideoChangedNotification = @"HBVideoChangedNotification"; copy->_level = [_level copy]; copy->_videoOptionExtra = [_videoOptionExtra copy]; copy->_fastDecode = _fastDecode; + + copy->_notificationsEnabled = _notificationsEnabled; } return copy; @@ -437,6 +444,8 @@ NSString * const HBVideoChangedNotification = @"HBVideoChangedNotification"; decodeBool(_fastDecode); + _notificationsEnabled = YES; + return self; } |