From 8c238bcec1d0aef1e0deea2c19c13d76d8c03b9b Mon Sep 17 00:00:00 2001
From: Frederic Bouvier <fredfgfs01@free.fr>
Date: Sat, 18 Jun 2011 13:02:35 +0200
Subject: [PATCH] Embedded Terrasync dialog: need to apply before reinit to get
 the scenery-dir correctly

---
 gui/dialogs/terrasync.xml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gui/dialogs/terrasync.xml b/gui/dialogs/terrasync.xml
index 067681612..0bfae2405 100644
--- a/gui/dialogs/terrasync.xml
+++ b/gui/dialogs/terrasync.xml
@@ -390,6 +390,9 @@
       <legend>OK</legend>
       <border>2</border>
       <equal>true</equal>
+      <binding>
+        <command>dialog-apply</command>
+      </binding>
       <binding>
         <command>reinit</command>
         <subsystem>terrasync</subsystem>
@@ -403,6 +406,9 @@
       <legend>Apply</legend>
       <equal>true</equal>
       <border>2</border>
+      <binding>
+        <command>dialog-apply</command>
+      </binding>
       <binding>
         <command>reinit</command>
         <subsystem>terrasync</subsystem>