summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Paulsson <gonz@users.sourceforge.net>2013-02-28 13:40:33 +0000
committerJohan Paulsson <gonz@users.sourceforge.net>2013-02-28 13:40:33 +0000
commit16d89050977ccdc9d6fafc5ee03d8be1f4ae717d (patch)
tree86b3895f94b535ab75131bcfab10f0c124f6ff33
parent2ecc0bb27275481f7093fd869eda6b3fc11971f0 (diff)
osx gui: error notification goes away on undo
-rw-r--r--tikzit/src/osx/TikzSourceController.m3
1 files changed, 2 insertions, 1 deletions
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