diff options
Diffstat (limited to 'macosx/HBJob.m')
-rw-r--r-- | macosx/HBJob.m | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/macosx/HBJob.m b/macosx/HBJob.m index d23bb6039..c55e99fa8 100644 --- a/macosx/HBJob.m +++ b/macosx/HBJob.m @@ -44,6 +44,8 @@ NSString *HBContainerChangedNotification = @"HBContainerChangedNotificatio _chapterTitles = [title.chapters mutableCopy]; + _uuid = [[[NSUUID UUID] UUIDString] retain]; + [self applyPreset:preset]; } @@ -142,6 +144,8 @@ NSString *HBContainerChangedNotification = @"HBContainerChangedNotificatio [_chapterTitles release]; + [_uuid release]; + [super dealloc]; } @@ -156,7 +160,7 @@ NSString *HBContainerChangedNotification = @"HBContainerChangedNotificatio copy->_state = HBJobStateReady; copy->_presetName = [_presetName copy]; copy->_titleIdx = _titleIdx; - copy->_pidId = _pidId; + copy->_uuid = [[[NSUUID UUID] UUIDString] retain]; copy->_fileURL = [_fileURL copy]; copy->_destURL = [_destURL copy]; @@ -192,7 +196,7 @@ NSString *HBContainerChangedNotification = @"HBContainerChangedNotificatio encodeInt(_state); encodeObject(_presetName); encodeInt(_titleIdx); - encodeInt(_pidId); + encodeObject(_uuid); encodeObject(_fileURL); encodeObject(_destURL); @@ -221,7 +225,7 @@ NSString *HBContainerChangedNotification = @"HBContainerChangedNotificatio decodeInt(_state); decodeObject(_presetName); decodeInt(_titleIdx); - decodeInt(_pidId); + decodeObject(_uuid); decodeObject(_fileURL); decodeObject(_destURL); |