From 7cbbe5e0507fa1d0478e76b80e7853ac978fc9b3 Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Wed, 18 Apr 2007 05:28:06 +0000 Subject: [PATCH] Show log on error only --- Sources/VLDocument.mm | 4 ++-- Sources/VLMIDIDocument.mm | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Sources/VLDocument.mm b/Sources/VLDocument.mm index 150c5d9..6413188 100644 --- a/Sources/VLDocument.mm +++ b/Sources/VLDocument.mm @@ -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]; diff --git a/Sources/VLMIDIDocument.mm b/Sources/VLMIDIDocument.mm index 3be4768..9ea48b8 100644 --- a/Sources/VLMIDIDocument.mm +++ b/Sources/VLMIDIDocument.mm @@ -58,6 +58,7 @@ if (!status) { ; } else { + [[self logWin] showWindow: self]; NSBeep(); } }