summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-05-13 16:30:46 +0000
committerritsuka <[email protected]>2015-05-13 16:30:46 +0000
commit667689b6088e4accb8ce1e1cfa203f2ecd2dacb3 (patch)
treec56ff75eef1ac55a546683eb379534ea0a63991c /macosx
parent792e8a595b395eb98e9ce8f9bd0dd1304644e42f (diff)
MacGui: remove che previews cache in HBPreviewGenerator when a setting changed and not in HBPreviewController
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7173 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-rw-r--r--macosx/HBPreviewController.m3
-rw-r--r--macosx/HBPreviewGenerator.m4
2 files changed, 4 insertions, 3 deletions
diff --git a/macosx/HBPreviewController.m b/macosx/HBPreviewController.m
index 1313682c7..ef42b961e 100644
--- a/macosx/HBPreviewController.m
+++ b/macosx/HBPreviewController.m
@@ -247,9 +247,6 @@ typedef enum ViewMode : NSUInteger {
{
if (self.generator)
{
- // Purge the existing picture previews so they get recreated the next time
- // they are needed.
- [self.generator purgeImageCache];
[self switchViewToMode:ViewModePicturePreview];
[self displayPreview];
}
diff --git a/macosx/HBPreviewGenerator.m b/macosx/HBPreviewGenerator.m
index e1cf20e26..379d584f9 100644
--- a/macosx/HBPreviewGenerator.m
+++ b/macosx/HBPreviewGenerator.m
@@ -108,6 +108,10 @@
- (void) imagesSettingsDidChange
{
+ // Purge the existing picture previews so they get recreated the next time
+ // they are needed.
+
+ [self purgeImageCache];
[self.delegate reloadPreviews];
}