Show log on error only

This commit is contained in:
Matthias Neeracher 2007-04-18 05:28:06 +00:00
parent b6c9141e52
commit 7cbbe5e050
2 changed files with 3 additions and 2 deletions

View File

@ -369,8 +369,7 @@
[task setStandardError: pipe]; [task setStandardError: pipe];
[task setArguments: args]; [task setArguments: args];
[task setLaunchPath: launch]; [task setLaunchPath: launch];
[[self logWin] window]; // Load but don't show
[[self logWin] showWindow: self];
[NSThread detachNewThreadSelector:@selector(logFromFileHandle:) toTarget:logWin [NSThread detachNewThreadSelector:@selector(logFromFileHandle:) toTarget:logWin
withObject:[pipe fileHandleForReading]]; withObject:[pipe fileHandleForReading]];
@ -412,6 +411,7 @@
[[self pdfWin] showWindow: self]; [[self pdfWin] showWindow: self];
[pdfWin reloadPDF]; [pdfWin reloadPDF];
} else { } else {
[[self logWin] showWindow: self];
NSBeep(); NSBeep();
} }
[self changedFileWrapper]; [self changedFileWrapper];

View File

@ -58,6 +58,7 @@
if (!status) { if (!status) {
; ;
} else { } else {
[[self logWin] showWindow: self];
NSBeep(); NSBeep();
} }
} }