1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

[#125 state:fixed] Wrapped error message around a crash when the iPhoto app can't be found.

This commit is contained in:
Virgil Dupras
2010-12-31 12:10:44 +01:00
parent 6a6f2d51aa
commit 09082955a3
2 changed files with 27 additions and 10 deletions

View File

@@ -63,13 +63,16 @@ http://www.hardcoded.net/licenses/bsd_license
[_py setIgnoreHardlinkMatches:n2b([ud objectForKey:@"ignoreHardlinkMatches"])];
[_py setMatchScaled:[ud objectForKey:@"matchScaled"]];
int r = n2i([py doScan]);
if (r != 0)
if (r != 0) {
[[ProgressController mainProgressController] hide];
if (r == 3)
{
}
if (r == 3) {
[Dialogs showMessage:@"The selected directories contain no scannable file."];
[app toggleDirectories:nil];
}
if (r == 4) {
[Dialogs showMessage:@"The iPhoto application couldn't be found."];
}
}
- (IBAction)toggleDirectories:(id)sender