]> git.mxchange.org Git - flightgear.git/commitdiff
Joystick/dialog caches, commit the transactions.
authorJames Turner <zakalawe@mac.com>
Fri, 25 Jan 2013 08:30:31 +0000 (09:30 +0100)
committerJames Turner <zakalawe@mac.com>
Fri, 25 Jan 2013 08:30:31 +0000 (09:30 +0100)
src/GUI/new_gui.cxx
src/Input/FGDeviceConfigurationMap.cxx

index 4975b193fa40498e30ee2c59d4c7c6c14f90b218..864352b1a578ee6116b2a60ee68d268b1838ef92 100644 (file)
@@ -323,6 +323,8 @@ NewGUI::readDir (const SGPath& path)
       cache->stampCacheFile(xmlPath);
       cache->writeStringProperty(xmlPath.str(), name);
     } // of directory children iteration
+  
+    txn.commit();
 }\f
 ////////////////////////////////////////////////////////////////////////
 // Style handling.
index 73e9afd0587c04852dfa4cef0805b1dc819c09e3..d62a32f9e88bd243976fc91fa94e56bc0bdc36cb 100644 (file)
@@ -117,6 +117,8 @@ void FGDeviceConfigurationMap::scan_dir(const SGPath & path)
       } // of cached file stamp is valid
     } // of child is a file with '.xml' extension
   } // of directory children iteration
+  
+  txn.commit();
 }
 
 void FGDeviceConfigurationMap::readCachedData(const SGPath& path)