]> granicus.if.org Git - graphviz/commitdiff
don't let inspector prevent application exiting (otherwise trying to open application...
authorglenlow <devnull@localhost>
Sat, 12 Jul 2008 01:32:50 +0000 (01:32 +0000)
committerglenlow <devnull@localhost>
Sat, 12 Jul 2008 01:32:50 +0000 (01:32 +0000)
windows/AttributeInspectorForm.cs

index 8b4b98aa02c427d9510be4fb9d82b38e866841e7..d03c078a60f246262a182898d95f3f5f28505593 100755 (executable)
@@ -80,10 +80,15 @@ namespace Graphviz
 \r
                protected override void OnFormClosing(FormClosingEventArgs e)\r
                {\r
+                       if (e.CloseReason == CloseReason.UserClosing)\r
+                       {\r
                        /* instead of closing, we hide ourselves */\r
                        Hide();\r
                        e.Cancel = true;\r
                }\r
+                       else\r
+                               _instance = null;\r
+               }\r
                \r
                private class GraphPropertyTab : ExternalPropertyTab\r
                {\r