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

View File

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