From 982a49d39a22fe0b87f54e3942e89f52e61631e3 Mon Sep 17 00:00:00 2001
From: Stuart Buchanan <stuart_d_buchanan@yahoo.co.uk>
Date: Thu, 25 Apr 2013 22:10:17 +0100
Subject: [PATCH] Fix Terrasync dialog.

---
 gui/dialogs/terrasync.xml | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/gui/dialogs/terrasync.xml b/gui/dialogs/terrasync.xml
index d2fc6acd2..34c79ee6a 100644
--- a/gui/dialogs/terrasync.xml
+++ b/gui/dialogs/terrasync.xml
@@ -2,13 +2,6 @@
 
 <PropertyList>
   <name>terrasync</name>
-  <nasal>
-    <!-- Generalize all this, turn into helpers and load defaults via XML -->
-    <open><![CDATA[
-      setprop("/sim/gui/dialogs/terrasync/display-mode", "0");
-      ]]>
-    </open>
-  </nasal>
     
   <layout>vbox</layout>
 
@@ -515,6 +508,9 @@
 
   <nasal>
     <open><![CDATA[
+    
+      setprop("/sim/gui/dialogs/terrasync/display-mode", "0");
+    
       var msg = "";
       if (getprop("/sim/terrasync/built-in-svn-available"))
       {