From 16d89050977ccdc9d6fafc5ee03d8be1f4ae717d Mon Sep 17 00:00:00 2001 From: Johan Paulsson Date: Thu, 28 Feb 2013 13:40:33 +0000 Subject: osx gui: error notification goes away on undo --- tikzit/src/osx/TikzSourceController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tikzit/src/osx/TikzSourceController.m b/tikzit/src/osx/TikzSourceController.m index 6daff0f..d05aa41 100644 --- a/tikzit/src/osx/TikzSourceController.m +++ b/tikzit/src/osx/TikzSourceController.m @@ -120,6 +120,7 @@ - (void)updateTikzFromGraph { [self setTikz:[[graphicsView graph] tikz]]; + [errorNotification setHidden:TRUE]; } - (void)graphChanged:(NSNotification*)n { @@ -131,7 +132,7 @@ } - (void)textDidBeginEditing:(NSNotification *)notification { - if ([graphicsView enabled]) { + if ([graphicsView enabled]){ [graphicsView setEnabled:NO]; [graphicsView refreshLayers]; [documentUndoManager registerUndoWithTarget:self -- cgit v1.2.3